結果

問題 No.9010 うるう年判定
ユーザー Mst. Hasna Noushin Nipu
提出日時 2023-02-17 22:07:03
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 2,096 ms
コンパイル使用メモリ 192,884 KB
最終ジャッジ日時 2025-02-10 16:54:10
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;

}
0