/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 13ms 3.066 MiB
#2 Accepted 14ms 2.941 MiB
#3 Accepted 13ms 3.023 MiB
#4 Accepted 14ms 3.336 MiB
#5 Accepted 14ms 3.02 MiB

Code

Y = int(input())

if (Y % 400 == 0) and (Y % 100 == 0):
    print("YES")
elif (Y % 4 == 0) and (Y % 100 != 0):
    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 15:20:50
Judged At
2024-10-03 14:05:29
Judged By
Score
100
Total Time
14ms
Peak Memory
3.336 MiB