Skip to content

Commit

Permalink
Sol: [BOJ] 1476 날짜 계산
Browse files Browse the repository at this point in the history
  • Loading branch information
k0000k authored Jan 26, 2023
1 parent f9cbdf3 commit 8977a4d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Brute-Force/1476.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
E, S, M = map(int, input().split())

year = 1
a = b = c = 1

while (a != E or b != S or c != M):
year += 1
a += 1
b += 1
c += 1

if (a == 16):
a = 1
if (b == 29):
b = 1
if (c == 20):
c = 1
print(year)

0 comments on commit 8977a4d

Please sign in to comment.