結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー | pirorirori_n712 |
提出日時 | 2018-08-29 02:40:18 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 577 bytes |
コンパイル時間 | 4,237 ms |
コンパイル使用メモリ | 104,072 KB |
実行使用メモリ | 23,860 KB |
最終ジャッジ日時 | 2023-09-26 06:28:34 |
合計ジャッジ時間 | 5,146 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
21,872 KB |
testcase_01 | AC | 55 ms
21,928 KB |
testcase_02 | AC | 50 ms
21,172 KB |
testcase_03 | AC | 57 ms
23,860 KB |
testcase_04 | AC | 56 ms
23,792 KB |
testcase_05 | AC | 57 ms
23,780 KB |
testcase_06 | WA | - |
testcase_07 | AC | 56 ms
21,780 KB |
testcase_08 | WA | - |
testcase_09 | AC | 55 ms
21,872 KB |
testcase_10 | AC | 56 ms
21,732 KB |
testcase_11 | AC | 51 ms
23,260 KB |
testcase_12 | AC | 55 ms
21,780 KB |
testcase_13 | AC | 55 ms
21,736 KB |
testcase_14 | AC | 56 ms
23,728 KB |
testcase_15 | AC | 57 ms
21,684 KB |
testcase_16 | AC | 57 ms
21,844 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; class No446 { static void Main() { var IsTrue = true; for (int i = 0; i < 2; ++i) { var str = Console.ReadLine(); if (str.All(x => char.IsNumber(x))) { var firstNum = Int32.Parse(str); IsTrue = firstNum <= 12345; IsTrue = (int)Math.Log10(firstNum==0?1:firstNum) + 1 == str.Count(); } else IsTrue = false; if (!IsTrue) break; } Console.WriteLine(IsTrue ? "OK" : "NG"); } }