일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 라즈베리파이3b+
- bootstrap
- dynaminprogramming
- 13237
- raspberrypi
- 라즈베리파이3
- Python
- 알고리즘
- MongoDB
- Algorythm
- 2579
- 백준
- CSS
- 라즈베리파이
- 파이썬
- nav-tab
- NAV
- 16.04
- dp
- 트리
- 크롤링
- HTML
- ubuntu
- springboot3.x
- node.js
- algotythm
- baekjun
- 2909
- Crawling
- 라즈비안
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