結果
問題 | No.9010 うるう年判定 |
ユーザー |
|
提出日時 | 2023-04-05 21:58:20 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 274 bytes |
コンパイル時間 | 621 ms |
コンパイル使用メモリ | 66,580 KB |
最終ジャッジ日時 | 2025-02-11 23:09:12 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 % 4 == 0 || year % 400 == 0) && year % 100 != 0) {cout << "YES";}else {cout << "No";}}