boris-vlasenko

високосный год

Oct 2nd, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. year = int(input())
  2. if year % 4 == 0 and year % 100 != 0 or year % 400 == 0:
  3.     print('YES')
  4. else:
  5.     print('NO')
Advertisement
Add Comment
Please, Sign In to add comment