結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
kmtrc130
|
| 提出日時 | 2017-06-02 15:10:03 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 661 bytes |
| 記録 | |
| コンパイル時間 | 969 ms |
| コンパイル使用メモリ | 109,160 KB |
| 実行使用メモリ | 25,400 KB |
| 最終ジャッジ日時 | 2024-09-21 22:13:15 |
| 合計ジャッジ時間 | 2,134 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 8 WA * 5 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main(string[] args)
{
string[] AB = new string[2];
AB[0] = Console.ReadLine();
AB[1] = Console.ReadLine();
bool isOK = false;
int chkNumeric = 0;
foreach (string chkString in AB)
{
isOK = false;
if (!int.TryParse(chkString, out chkNumeric)) { break; }
if (1 < chkString.Length && chkString.Substring(0, 1) == "0") { break; }
if (chkNumeric < 12345) { break; }
isOK = true;
}
Console.WriteLine(isOK ? "OK" : "NG");
}
}
kmtrc130