結果

問題 No.779 Heisei
コンテスト
ユーザー 大谷祐翔
提出日時 2025-12-05 13:20:19
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 27 ms / 1,000 ms
コード長 717 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 850 ms
コンパイル使用メモリ 107,920 KB
実行使用メモリ 26,660 KB
最終ジャッジ日時 2025-12-05 13:20:42
合計ジャッジ時間 2,442 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #
raw source code

using System;
class Program
{
    static void Main(string[] args)
    {
        string[] input = Console.ReadLine()!.Split(' ');
        int year = int.Parse(input[0]);
        int month = int.Parse(input[1]);
        int day = int.Parse(input[2]);

        if (year >= 1989 && year <= 2019)
        {
            if (year == 1989 && month == 1 && day < 8)
            {
                Console.WriteLine("No");
            }
            else if (year == 2019 && month > 4)
            {
                Console.WriteLine("No");
            }
            else
            {
                Console.WriteLine("Yes");
            }
        }
        else
        {
            Console.WriteLine("No");
        }
    }
}
0