結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー kmtrc130kmtrc130
提出日時 2017-06-02 15:10:03
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 661 bytes
コンパイル時間 888 ms
コンパイル使用メモリ 108,488 KB
実行使用メモリ 23,860 KB
最終ジャッジ日時 2023-10-21 20:47:07
合計ジャッジ時間 2,008 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        string[] AB = new string[2];
        AB[0] = Console.ReadLine();
        AB[1] = Console.ReadLine();

        bool isOK = false;
        int chkNumeric = 0;

        foreach (string chkString in AB)
        {
            isOK = false;

            if (!int.TryParse(chkString, out chkNumeric)) { break; }
            if (1 < chkString.Length && chkString.Substring(0, 1) == "0") { break; }
            if (chkNumeric < 12345) { break; }
            isOK = true;
        }
        Console.WriteLine(isOK ? "OK" : "NG");
    }
}
0