結果
問題 | No.9010 うるう年判定 |
ユーザー |
|
提出日時 | 2023-04-05 22:09:51 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 274 bytes |
コンパイル時間 | 469 ms |
コンパイル使用メモリ | 65,584 KB |
最終ジャッジ日時 | 2025-02-11 23:09:21 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 15 WA * 10 |
ソースコード
#include <iostream>#include <string> // ヘッダファイルインクルードusing namespace std;//std::を省略int main(){int year;cin >> year;if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) {cout << "YES";}else {cout << "No";}}