Skip to content

Instantly share code, notes, and snippets.

@ensup
Last active November 15, 2021 07:54
Show Gist options
  • Save ensup/99531efea815c3f90b26eb4058e6384b to your computer and use it in GitHub Desktop.
Save ensup/99531efea815c3f90b26eb4058e6384b to your computer and use it in GitHub Desktop.
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