結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
mencotton
|
| 提出日時 | 2017-12-30 17:09:04 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 688 bytes |
| コンパイル時間 | 754 ms |
| コンパイル使用メモリ | 111,008 KB |
| 実行使用メモリ | 25,532 KB |
| 最終ジャッジ日時 | 2024-12-21 13:22:50 |
| 合計ジャッジ時間 | 1,672 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
using System.Collections.Generic;
using System.Linq;
namespace Test
{
class Program
{
static void Main(string[] args)
{
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
bool flag = !((s1[0] == '0' && s1.Length != 1) || (s2[0] == '0' && s2.Length != 1));
for (int i = 0; i < s1.Length; i++)
{
if (s1[i] < '0' || '9' < s1[i]) flag = false;
}
for (int i = 0; i < s2.Length; i++)
{
if (s2[i] < '0' || '9' < s2[i]) flag = false;
}
Console.WriteLine(flag ? "OK" : "NG");
}
}
}
mencotton