結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー ototonariototonari
提出日時 2017-03-20 00:50:58
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 713 bytes
コンパイル時間 2,774 ms
コンパイル使用メモリ 98,932 KB
実行使用メモリ 22,788 KB
最終ジャッジ日時 2023-09-18 07:32:21
合計ジャッジ時間 4,076 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,788 KB
testcase_01 AC 56 ms
20,756 KB
testcase_02 AC 56 ms
20,668 KB
testcase_03 AC 56 ms
20,824 KB
testcase_04 AC 57 ms
20,744 KB
testcase_05 AC 56 ms
20,648 KB
testcase_06 AC 56 ms
20,660 KB
testcase_07 WA -
testcase_08 AC 57 ms
22,652 KB
testcase_09 WA -
testcase_10 AC 56 ms
20,636 KB
testcase_11 AC 57 ms
20,672 KB
testcase_12 AC 56 ms
20,676 KB
testcase_13 AC 56 ms
20,828 KB
testcase_14 AC 56 ms
20,748 KB
testcase_15 AC 56 ms
20,744 KB
testcase_16 AC 55 ms
18,700 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace yukicoder
{
    class Program
    {
        static void Main(string[] args)
        {
            string x = Console.ReadLine();
            string y = Console.ReadLine();
            int A, B;
            if(int.TryParse(x,out A) && int.TryParse(y,out B))
            {
                if((A <= 12345) && (B <= 12345))
                {
                    Console.WriteLine("{0}", "OK");
                }
                else
                {
                    Console.WriteLine("{0}", "NG");
                }
            }
            else
            {
                Console.WriteLine("{0}", "NG");
            }
            
        }
    }
}
0