結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー りあんりあん
提出日時 2016-11-16 00:55:00
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 802 bytes
コンパイル時間 2,976 ms
コンパイル使用メモリ 102,004 KB
実行使用メモリ 22,604 KB
最終ジャッジ日時 2023-08-17 07:11:14
合計ジャッジ時間 4,509 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
20,524 KB
testcase_01 AC 53 ms
20,592 KB
testcase_02 AC 53 ms
22,528 KB
testcase_03 AC 52 ms
20,404 KB
testcase_04 AC 53 ms
22,604 KB
testcase_05 AC 53 ms
20,524 KB
testcase_06 AC 53 ms
20,452 KB
testcase_07 AC 51 ms
20,608 KB
testcase_08 AC 53 ms
20,612 KB
testcase_09 AC 53 ms
20,684 KB
testcase_10 AC 54 ms
22,604 KB
testcase_11 AC 53 ms
20,468 KB
testcase_12 AC 51 ms
20,480 KB
testcase_13 AC 54 ms
22,520 KB
testcase_14 AC 52 ms
20,592 KB
testcase_15 AC 53 ms
22,480 KB
testcase_16 AC 52 ms
22,604 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.Linq;
using System.IO;
using System.Text;

class Program
{
    static void Main()
    {
        var sc = new Scan();
        string[] a = {sc.Str, sc.Str};
        int lim = 12345;
        
        for (int i = 0; i < 2; i++)
        {
            for (int j = 0; j <= lim; j++)
            {
                if (a[i] == j.ToString()) break;

                if (j == lim)
                {
                    Console.WriteLine("NG");
                    return;
                }
            }
        }
        Console.WriteLine("OK");
    }
}
class Scan
{
    public int Int { get { return int.Parse(Str); } }
    public long Long { get { return long.Parse(Str); } }
    public string Str { get { return Console.ReadLine().Trim(); } }
}
0