/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 540.0 KiB
#2 Accepted 1ms 540.0 KiB
#3 Accepted 1ms 768.0 KiB
#4 Accepted 1ms 540.0 KiB
#5 Accepted 1ms 540.0 KiB

Code

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin >> n;
    
    if((n % 4 == 0) || ( n % 100 != 0 && n % 400 == 0))
    {
        cout << "YES" << endl;
    }
    else
    {
        cout << "NO" << endl;
    }
}

Information

Submit By
Type
Submission
Problem
P1023 Happy new year 2024
Language
C++17 (G++ 13.2.0)
Submit At
2025-01-03 12:47:56
Judged At
2025-01-03 12:47:56
Judged By
Score
100
Total Time
1ms
Peak Memory
768.0 KiB