/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 21ms 3.039 MiB
#2 Accepted 22ms 3.117 MiB
#3 Accepted 22ms 3.035 MiB
#4 Accepted 22ms 3.07 MiB
#5 Accepted 22ms 3.066 MiB

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
Language
Python 3 (Python 3.12.3)
Submit At
2024-01-09 14:26:47
Judged At
2024-10-03 14:03:03
Judged By
Score
100
Total Time
22ms
Peak Memory
3.117 MiB