結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー mban
提出日時 2016-11-24 23:08:35
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 922 bytes
コンパイル時間 1,178 ms
コンパイル使用メモリ 104,576 KB
実行使用メモリ 17,664 KB
最終ジャッジ日時 2024-11-27 10:50:13
合計ジャッジ時間 2,222 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 12 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
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' || B[0] == '0')
        {
            Console.WriteLine("NG");
            return;
        }
        if (int.Parse(A) > 12345 || int.Parse(B) > 12345)
        {
            Console.WriteLine("NG");
            return;
        }
        Console.WriteLine("OK");
    }
  
}


0