[백준] 1476번 : 날짜 계산 - Python(파이썬)

강재원·2022년 12월 9일
0

[코딩테스트] Python

목록 보기
200/200



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

e,s,m=map(int,input().split())
if e==15: e=0
if s==28: s=0
if m==19: m=0
i=1
while True:
    if i%15==e and i%28==s and i%19==m:
        print(i)
        break
    i+=1
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글