Skip to content

Instantly share code, notes, and snippets.

@ensup
Last active November 15, 2021 07:54
Embed
What would you like to do?
year = int(input())
if year%4==0 and year%100 and year%400:
print('윤년이다')
elif year%4==0 and year%100:
print('평년이다')
elif year%4==0:
print('윤년이다')
else:
print('평년이다')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment