반응형
import sys
input = sys.stdin.readline
E,S,M = map(int,input().split())
se,ss,sm,year=0,0,0,0
while 1:
se+=1
ss+=1
sm+=1
year+=1
if se>15:
se=1
if ss>28:
ss=1
if sm>19:
sm=1
if se==E and ss==S and sm==M:
print(year)
break
반응형
'Algorithm > Baekjoon' 카테고리의 다른 글
6064번 파이썬 (0) | 2022.03.14 |
---|---|
1107번 파이썬 (0) | 2022.03.14 |
3085번 파이썬 (0) | 2022.03.13 |
2309번 파이썬 (0) | 2022.03.12 |
6588번 파이썬 (0) | 2022.03.12 |