結果

問題 No.9010 うるう年判定
ユーザー lice6613
提出日時 2020-04-29 23:31:00
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 2,609 ms
コンパイル使用メモリ 191,480 KB
最終ジャッジ日時 2025-01-10 03:34:10
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  if (N % 400 == 0) {
    cout << "Yes" << endl;
  } else if (N % 100 == 0) {
    cout << "No" << endl;
  } else if (N % 4 == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
0