結果
| 問題 | No.9010 うるう年判定 |
| ユーザー |
|
| 提出日時 | 2023-02-17 22:07:03 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 1,219 ms |
| コンパイル使用メモリ | 208,004 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-29 15:12:28 |
| 合計ジャッジ時間 | 2,573 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
ソースコード
#include<bits/stdc++.h>
#define sync ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long
using namespace std;
int main()
{
sync;
ll n;
cin>>n;
if(n%400==0 ||(n%4==0 && n%100!=0))
cout<<"Yes\n";
else cout<<"No\n";
return 0;
}