結果

問題 No.779 Heisei
ユーザー hayashi
提出日時 2019-10-17 11:50:20
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 952 bytes
コンパイル時間 773 ms
コンパイル使用メモリ 109,888 KB
実行使用メモリ 26,116 KB
最終ジャッジ日時 2024-06-24 00:59:42
合計ジャッジ時間 2,343 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
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