結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-20 00:50:58 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 713 bytes |
| 記録 | |
| コンパイル時間 | 552 ms |
| コンパイル使用メモリ | 103,680 KB |
| 実行使用メモリ | 18,304 KB |
| 最終ジャッジ日時 | 2026-03-26 06:08:42 |
| 合計ジャッジ時間 | 1,372 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 11 WA * 2 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace yukicoder
{
class Program
{
static void Main(string[] args)
{
string x = Console.ReadLine();
string y = Console.ReadLine();
int A, B;
if(int.TryParse(x,out A) && int.TryParse(y,out B))
{
if((A <= 12345) && (B <= 12345))
{
Console.WriteLine("{0}", "OK");
}
else
{
Console.WriteLine("{0}", "NG");
}
}
else
{
Console.WriteLine("{0}", "NG");
}
}
}
}