結果
| 問題 | No.9010 うるう年判定 |
| ユーザー |
|
| 提出日時 | 2019-01-26 14:03:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 409 bytes |
| 記録 | |
| コンパイル時間 | 399 ms |
| コンパイル使用メモリ | 57,432 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-16 05:06:51 |
| 合計ジャッジ時間 | 1,168 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 23 WA * 2 |
ソースコード
#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 % 400;
if (N == 0) {
A = "Yes";
}else if (A == "Yes"){
N = N % 100;
A = "No";
}else A = "No";
cout << A << "\n";
}