結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
|
提出日時 | 2016-11-18 23:01:08 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 597 bytes |
コンパイル時間 | 802 ms |
コンパイル使用メモリ | 102,656 KB |
実行使用メモリ | 18,560 KB |
最終ジャッジ日時 | 2024-11-26 07:48:51 |
合計ジャッジ時間 | 2,073 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
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.
ソースコード
using System; public class Program { public static void Main() { var A = Console.ReadLine(); int A_; if (int.TryParse(A, out A_)) { if ((A.StartsWith("0") && A_ > 0) || A_ < 0 || 12345 < A_) { Console.WriteLine("NG"); return; } } else { Console.WriteLine("NG"); return; } var B = Console.ReadLine(); int B_; if (int.TryParse(B, out B_)) { if ((B.StartsWith("0") && B_ > 0) || B_ < 0 || 12345 < B_) { Console.WriteLine("NG"); return; } } else { Console.WriteLine("NG"); return; } Console.WriteLine("OK"); } }