結果
問題 |
No.9010 うるう年判定
|
ユーザー |
![]() |
提出日時 | 2020-09-16 23:12:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 281 bytes |
コンパイル時間 | 1,645 ms |
コンパイル使用メモリ | 167,012 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 03:42:52 |
合計ジャッジ時間 | 2,307 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin >> N; bool a=false; if(N%4==0){ a=true; } if(N%100==0){ a=false; } if(N%400==0){ a=true; } if(a){ cout << "Yes" << endl; } else{ cout << "No" << endl; } }