結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー NoNo
提出日時 2016-11-21 16:36:11
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 979 bytes
コンパイル時間 6,137 ms
コンパイル使用メモリ 101,744 KB
実行使用メモリ 22,844 KB
最終ジャッジ日時 2023-08-18 06:10:08
合計ジャッジ時間 3,794 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,712 KB
testcase_01 AC 53 ms
20,624 KB
testcase_02 AC 53 ms
20,704 KB
testcase_03 WA -
testcase_04 AC 54 ms
22,620 KB
testcase_05 AC 55 ms
20,808 KB
testcase_06 AC 53 ms
20,796 KB
testcase_07 AC 52 ms
20,784 KB
testcase_08 AC 53 ms
20,624 KB
testcase_09 AC 54 ms
20,620 KB
testcase_10 AC 54 ms
20,752 KB
testcase_11 AC 53 ms
22,668 KB
testcase_12 WA -
testcase_13 WA -
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;
using System.Text;
using System.Threading.Tasks;

namespace yukikoda
{
    class Program
    {
        static void Main(string[] args)
        {
            string a = Console.ReadLine();
            string b = Console.ReadLine();

            int aa = 0;
            int bb = 0;
            if (int.TryParse(a,out aa) && int.TryParse(b, out bb))
            {
                Console.WriteLine("NG");
                return;
            }

            if (!a.Equals(aa.ToString()) || !b.Equals(bb.ToString())) {
                Console.WriteLine("NG");
                return;
            }

            if (aa < 0 || aa > 12345 )
            {
                Console.WriteLine("NG");
                return;
            }

            if (bb < 0 || bb > 12345)
            {
                Console.WriteLine("NG");
                return;
            }

            Console.WriteLine("OK");
        }
    }
}
0