본문 바로가기
python-algorithm

백준 6888 Terms of Office

by 무적김두칠 2022. 12. 23.

https://www.acmicpc.net/problem/6888

 

6888번: Terms of Office

In CS City, a mathematical place to live, the mayor is elected every 4 years, the treasurer is appointed every 2 years, the chief programmer is elected every 3 years and the dog-catcher is replaced every 5 years. This year, Year $X$, the newly elected mayo

www.acmicpc.net

 

1
2
3
4
5
6
7
8
9
10
def sol(start, end):
    cnt = (end - start)//60
    for i in range(cnt+1):
        print('All positions change in year %d'%(start+i*60))
        
if __name__ == '__main__':
    start = int(input())
    end = int(input())
    sol(start,end)
 
cs
반응형

'python-algorithm' 카테고리의 다른 글

백준 26500 Absolutely  (0) 2022.12.24
백준 26766 Serca  (0) 2022.12.24
백준 26546 Reverse  (0) 2022.12.23
백준 10188 Quadrilateral  (0) 2022.12.23
백준 26592 Triangle Height  (0) 2022.12.23

댓글