結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー curryudon08curryudon08
提出日時 2020-07-30 05:31:00
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 756 bytes
コンパイル時間 2,580 ms
コンパイル使用メモリ 104,608 KB
実行使用メモリ 22,792 KB
最終ジャッジ日時 2023-09-14 22:55:39
合計ジャッジ時間 4,393 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,636 KB
testcase_01 AC 54 ms
20,724 KB
testcase_02 AC 55 ms
20,672 KB
testcase_03 AC 54 ms
20,660 KB
testcase_04 AC 54 ms
20,788 KB
testcase_05 AC 54 ms
20,748 KB
testcase_06 AC 54 ms
22,700 KB
testcase_07 AC 54 ms
22,684 KB
testcase_08 AC 55 ms
20,760 KB
testcase_09 AC 55 ms
20,788 KB
testcase_10 AC 54 ms
20,684 KB
testcase_11 AC 54 ms
18,640 KB
testcase_12 AC 54 ms
22,716 KB
testcase_13 AC 54 ms
22,792 KB
testcase_14 AC 54 ms
20,688 KB
testcase_15 AC 54 ms
20,732 KB
testcase_16 AC 54 ms
20,648 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 _0446
{
    class Program
    {
        static void Main(string[] args)
        {
            var a = Console.ReadLine();
            var b = Console.ReadLine();

            var f = true;
            var x = 0;
            var y = 0;
            if(int.TryParse(a,out x) && int.TryParse(b,out y)){
                if((x >= 0 && x <= 12345) && (y >= 0 && y <= 12345)){
                    var s = a.Length >= 2 && a[0] == '0';
                    var t = b.Length >= 2 && b[0] == '0';
                    f = s || t ? false : true;
                }else{
                    f = false;
                }
            }else{
                f = false;
            }

            Console.WriteLine(f ? "OK" : "NG");
        }
    }
}
0