結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー mbanmban
提出日時 2016-11-24 23:09:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 946 bytes
コンパイル時間 2,068 ms
コンパイル使用メモリ 103,548 KB
実行使用メモリ 22,932 KB
最終ジャッジ日時 2023-08-18 07:11:48
合計ジャッジ時間 3,863 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
22,728 KB
testcase_01 AC 52 ms
20,632 KB
testcase_02 AC 52 ms
20,652 KB
testcase_03 AC 56 ms
18,876 KB
testcase_04 AC 52 ms
22,720 KB
testcase_05 AC 52 ms
22,540 KB
testcase_06 AC 57 ms
22,700 KB
testcase_07 AC 53 ms
22,676 KB
testcase_08 AC 57 ms
20,708 KB
testcase_09 AC 51 ms
20,676 KB
testcase_10 AC 52 ms
20,688 KB
testcase_11 AC 53 ms
20,656 KB
testcase_12 AC 56 ms
20,704 KB
testcase_13 AC 56 ms
22,932 KB
testcase_14 AC 56 ms
20,836 KB
testcase_15 AC 57 ms
20,792 KB
testcase_16 AC 56 ms
20,796 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;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;

public class Magatro
{
    static string A, B;
    static void Main()
    {
        string abc = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
        A = Console.ReadLine();
        B = Console.ReadLine();
        for(int i = 0; i < 26 * 2; i++)
        {
            if (A.IndexOf(abc[i]) >= 0|| B.IndexOf(abc[i]) >= 0)
            {
                Console.WriteLine("NG");
                return;
            }
        }
        if ((A[0] == '0'&&A!="0") || (B[0] == '0' && B != "0"))
        {
            Console.WriteLine("NG");
            return;
        }
        if (int.Parse(A) > 12345 || int.Parse(B) > 12345)
        {
            Console.WriteLine("NG");
            return;
        }
        Console.WriteLine("OK");
    }
  
}


0