結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| コンテスト | |
| ユーザー |
TonyMooori
|
| 提出日時 | 2016-11-18 22:34:13 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 678 bytes |
| コンパイル時間 | 3,949 ms |
| コンパイル使用メモリ | 110,164 KB |
| 実行使用メモリ | 25,552 KB |
| 最終ジャッジ日時 | 2024-11-26 07:17:40 |
| 合計ジャッジ時間 | 2,036 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 WA * 3 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
class Program
{
static void Main()
{
var a_str = Console.ReadLine();
var b_str = Console.ReadLine();
int n;
if( int.TryParse(a_str,out n) == false )
End(false);
if( a_str[0] == '0' && n != 0 )
End(false);
if( int.TryParse(b_str,out n) == false )
End(false);
if( b_str[0] == '0' && n != 0 )
End(false);
End(true);
}
static void End(bool flag)
{
if( flag )
Console.WriteLine("OK");
else
Console.WriteLine("NG");
Environment.Exit(0);
}
}
TonyMooori