총 3개 변수로 연도 나타냄
우리의 1년 = 1 1 1
그러나 각 범위가 넘어갈 때에만 다시 1이 됨
내가 할거 : 이상한 연도 => 우리 연도 변환
걍 while 1부터 각각 병렬로 += 1 시키고
year에도 += 1
if E == 1 and S == 2 and M == 3:
print(year)
break
하면 되는거 아니냐
O(n)일 듯?
같이 counting할 int year
x, y, z = map(int, input().split())
year = 0
e, s, m = 0, 0, 0
while 1:
year += 1
e = e + 1 if e < 15 else 1
s = s + 1 if s < 28 else 1
m = m + 1 if m < 19 else 1
if e == x and s == y and m == z:
print(year)
break