結果

問題 No.779 Heisei
ユーザー Kaz_nlKaz_nl
提出日時 2019-02-02 12:39:14
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 444 bytes
コンパイル時間 3,323 ms
コンパイル使用メモリ 101,452 KB
実行使用メモリ 23,944 KB
最終ジャッジ日時 2023-08-06 02:02:24
合計ジャッジ時間 5,689 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,860 KB
testcase_01 AC 58 ms
23,900 KB
testcase_02 AC 57 ms
21,824 KB
testcase_03 AC 58 ms
21,832 KB
testcase_04 AC 58 ms
23,916 KB
testcase_05 AC 58 ms
23,756 KB
testcase_06 AC 61 ms
23,944 KB
testcase_07 AC 59 ms
21,832 KB
testcase_08 AC 60 ms
21,864 KB
testcase_09 AC 61 ms
23,912 KB
testcase_10 AC 58 ms
21,776 KB
testcase_11 AC 58 ms
21,940 KB
testcase_12 AC 58 ms
22,000 KB
testcase_13 AC 58 ms
21,824 KB
testcase_14 AC 57 ms
21,836 KB
testcase_15 AC 57 ms
19,808 KB
testcase_16 AC 58 ms
21,848 KB
testcase_17 AC 57 ms
21,896 KB
testcase_18 AC 58 ms
21,856 KB
testcase_19 AC 58 ms
21,836 KB
testcase_20 AC 59 ms
23,912 KB
testcase_21 AC 59 ms
19,836 KB
testcase_22 AC 58 ms
19,848 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class Program {
  static void Main() {
    var arr = Console.ReadLine().Split().Select(int.Parse).ToArray();
    var y = arr[0];
    var m = arr[1];
    var d = arr[2];
    bool f = true;
    if (y < 1989 || 2019 < y) {
      f = false;
    } else if (y == 1989 && m == 1 && d <= 7) {
      f = false;
    } else if (y == 2019 && m >= 5) {
      f = false;
    }
    Console.WriteLine(f ? "Yes" : "No"); 
  }
}
0