[백준 문제] P1476 날짜 계산


[백준 문제] P1476 날짜 계산

a, b, c = map(int, input().split())

for year in range(0,100000) :
    if (a == year%15+1) and (b == year%28+1) and (c == year%19+1) :
        print(year+1)
        break
    
15 28 19
7980





© 2018. by statssy

Powered by statssy