結果
| 問題 | No.9010 うるう年判定 |
| ユーザー |
|
| 提出日時 | 2020-11-10 12:56:46 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 494 bytes |
| 記録 | |
| コンパイル時間 | 632 ms |
| コンパイル使用メモリ | 96,992 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-15 01:49:39 |
| 合計ジャッジ時間 | 1,776 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
#include <algorithm>
#include <array>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
#define int long long
signed main()
{
cin.tie(0);
ios::sync_with_stdio(0);
int n;
cin >> n;
bool ans = false;
if (n % 400 == 0)
ans = true;
else if (n % 100 == 0)
ans = false;
else if (n % 4 == 0)
ans = true;
cout << (ans ? "Yes" : "No") << "\n";
}