Accepted
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