結果
問題 |
No.9010 うるう年判定
|
ユーザー |
|
提出日時 | 2025-06-27 06:32:46 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 561 bytes |
コンパイル時間 | 2,809 ms |
コンパイル使用メモリ | 276,040 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-27 06:32:51 |
合計ジャッジ時間 | 4,269 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int n; cin >> n; //////////////// 出力変数定義 //////////////// string result = "No"; //////////////////// 処理 //////////////////// if (n%4==0) result = "Yes"; if (n%100==0) result = "No"; if (n%400==0) result = "Yes"; //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }