結果

問題 No.9010 うるう年判定
ユーザー tomu28tomu28
提出日時 2019-01-26 14:05:53
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 873 ms
コンパイル使用メモリ 58,824 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-14 10:10:05
合計ジャッジ時間 1,552 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,352 KB
testcase_01 WA -
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 2 ms
4,352 KB
testcase_07 WA -
testcase_08 AC 1 ms
4,348 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 2 ms
4,352 KB
testcase_12 WA -
testcase_13 AC 1 ms
4,348 KB
testcase_14 WA -
testcase_15 AC 2 ms
4,348 KB
testcase_16 AC 2 ms
4,348 KB
testcase_17 AC 1 ms
4,348 KB
testcase_18 WA -
testcase_19 AC 1 ms
4,352 KB
testcase_20 AC 1 ms
4,348 KB
testcase_21 AC 1 ms
4,348 KB
testcase_22 AC 2 ms
4,352 KB
testcase_23 AC 2 ms
4,352 KB
testcase_24 WA -
testcase_25 AC 2 ms
4,352 KB
testcase_26 WA -
testcase_27 AC 1 ms
4,348 KB
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

    N = N % 100;
    if (N == 0)
    A = "No";
   

    cout << A << "\n";
}
0