Accepted
Code
year=int(input())
if 1996< year < 2100:
if year % 4 == 0:
if year % 100 == 0:
if year % 400 == 0:
print("YES")
else:
print("NO")
else:
print("YES")
else:
print("NO")
Information
- Submit By
- Type
- Submission
- Problem
- P1023 Happy new year 2024
- Contest
- Brain booster - 1
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2023-12-31 13:36:33
- Judged At
- 2024-11-11 03:46:37
- Judged By
- Score
- 100
- Total Time
- 15ms
- Peak Memory
- 3.121 MiB