結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー jousenjousen
提出日時 2016-11-18 22:36:33
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 1,085 bytes
コンパイル時間 3,119 ms
コンパイル使用メモリ 105,548 KB
実行使用メモリ 23,448 KB
最終ジャッジ日時 2023-08-17 11:06:17
合計ジャッジ時間 4,241 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
21,312 KB
testcase_01 AC 52 ms
21,240 KB
testcase_02 AC 52 ms
21,176 KB
testcase_03 AC 55 ms
21,468 KB
testcase_04 AC 51 ms
19,100 KB
testcase_05 AC 51 ms
21,308 KB
testcase_06 AC 56 ms
21,496 KB
testcase_07 AC 50 ms
21,272 KB
testcase_08 AC 55 ms
19,508 KB
testcase_09 AC 50 ms
21,192 KB
testcase_10 AC 51 ms
21,200 KB
testcase_11 AC 52 ms
23,176 KB
testcase_12 AC 57 ms
23,448 KB
testcase_13 AC 54 ms
23,388 KB
testcase_14 AC 55 ms
21,484 KB
testcase_15 AC 55 ms
23,444 KB
testcase_16 AC 54 ms
21,476 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Collections;
using System.Linq;
using System.Numerics;




namespace contest
{

    class contest
    {


        static void Main(string[] args)
        {


            //int n = int.Parse(Console.ReadLine());
            //var input = Console.ReadLine().Split().Select(int.Parse).ToArray();

            //var num = Console.ReadLine().Split().Select(int.Parse).ToArray();




            string A = (Console.ReadLine());
            string B = (Console.ReadLine());



            if(A.Any(c=>c<'0' || c>'9')|| B.Any(c => c < '0' || c > '9'))
            {
                Console.WriteLine("NG");
            }
            else if((A.Length>1 && A[0]=='0') || (B.Length>1 && B[0]=='0'))
            {
                Console.WriteLine("NG");
            }
            else if (int.Parse(A)>12345 || int.Parse(B)>12345)
            {
                Console.WriteLine("NG");
            }
            else
            {
                Console.WriteLine("OK");
            }



           


        }

       

    }


}
0