結果

問題 No.779 Heisei
ユーザー hayashihayashi
提出日時 2019-10-17 11:50:20
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 952 bytes
コンパイル時間 2,332 ms
コンパイル使用メモリ 101,244 KB
実行使用メモリ 22,872 KB
最終ジャッジ日時 2023-09-06 06:19:32
合計ジャッジ時間 5,017 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 56 ms
22,812 KB
testcase_02 AC 57 ms
20,740 KB
testcase_03 AC 56 ms
20,700 KB
testcase_04 AC 55 ms
22,768 KB
testcase_05 WA -
testcase_06 AC 56 ms
22,736 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 55 ms
20,852 KB
testcase_10 AC 55 ms
20,716 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 57 ms
22,828 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 57 ms
20,732 KB
testcase_17 AC 56 ms
20,692 KB
testcase_18 AC 56 ms
20,836 KB
testcase_19 AC 58 ms
18,664 KB
testcase_20 AC 55 ms
20,796 KB
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] N = Console.ReadLine().Split(' ');
            int Y = int.Parse(N[0]);
            int M = int.Parse(N[1]);
            int D = int.Parse(N[2]);

            if(Y == 1989)
            {
                if(M == 1 && D < 8)
                {
                    Console.WriteLine("No");
                }
                else
                {
                    Console.WriteLine("Yes");
                }
            }
            else if (Y == 2019)
            {
                if (M >= 5)
                {
                    Console.WriteLine("No");
                }
                else
                {
                    Console.WriteLine("Yes");
                }
            }
            if (Y >= 1990 && Y <= 2018)
            {
                Console.WriteLine("Yes");
            }
        }
    }
}
0