結果
| 問題 | No.9010 うるう年判定 |
| ユーザー |
|
| 提出日時 | 2019-01-26 14:12:08 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 408 bytes |
| 記録 | |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 73,700 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-28 12:40:00 |
| 合計ジャッジ時間 | 1,834 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | AC * 2 WA * 23 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
int N;
string A;
cin >> N;
N = N % 4;
if (N == 0)
A = "Yes";
else A = "No";
N = N % 100;
if (N == 0) {
A = "No";
}else if (A == "No"){
N = N % 400;
A = "Yes";
}else A = "No";
cout << A << "\n";
}