일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 백준
- NAV
- baekjun
- ubuntu
- 크롤링
- Python
- 라즈베리파이3b+
- node.js
- dynaminprogramming
- MongoDB
- 13237
- dp
- 2909
- springboot3.x
- bootstrap
- 16.04
- HTML
- CSS
- algotythm
- 라즈베리파이3
- Algorythm
- 라즈비안
- Crawling
- nav-tab
- 2579
- 라즈베리파이
- raspberrypi
- 파이썬
- 트리
- 알고리즘
Archives
- Today
- Total
목록2579 (2)
노트
[백준] 14493번 과일노리 python
n=int(input()) bot=[] cur=0 for i in range(n): a, b=map(int, input().split()) bot.append([a, b]) cur+=bot[0][1] i=1 while i=bot[i][1]: i+=1 else: cur+=(bot[i][1]-cur%(bot[i][0]+bot[i][1])-1) print(cur+1)
알고리즘
2023. 10. 1. 14:27