結果
問題 |
No.9010 うるう年判定
|
ユーザー |
![]() |
提出日時 | 2020-09-12 11:08:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 510 bytes |
コンパイル時間 | 614 ms |
コンパイル使用メモリ | 89,976 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 01:27:53 |
合計ジャッジ時間 | 1,386 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#define _USE_MATH_DEFINES #include<cstdio> #include<cstdlib> #include<cstring> #include<sstream> #include<utility> #include<map> #include<climits> #include<vector> #include<queue> #include<algorithm> #include<set> #include<stack> #include<functional> #include<cmath> #include<iostream> using namespace std; typedef long long ll; typedef pair<int,int>P; const ll MOD=1e9+7; const int INF = 1000000000; int main() { int t; cin>>t; if(t%400==0||(t%100!=0&&t%4==0))cout<<"Yes"<<endl; else cout<<"No"<<endl; }