結果
問題 | No.355 数当てゲーム(2) |
ユーザー | AreTrash |
提出日時 | 2016-09-05 10:02:55 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 954 bytes |
コンパイル時間 | 2,143 ms |
コンパイル使用メモリ | 104,716 KB |
実行使用メモリ | 42,200 KB |
平均クエリ数 | 27.73 |
最終ジャッジ日時 | 2023-09-23 11:28:05 |
合計ジャッジ時間 | 13,398 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 89 ms
38,064 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 86 ms
39,980 KB |
testcase_07 | WA | - |
testcase_08 | AC | 89 ms
36,192 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 88 ms
37,944 KB |
testcase_14 | WA | - |
testcase_15 | AC | 89 ms
37,432 KB |
testcase_16 | WA | - |
testcase_17 | AC | 89 ms
38,084 KB |
testcase_18 | RE | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 89 ms
37,956 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | RE | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | RE | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | AC | 89 ms
38,344 KB |
testcase_34 | AC | 91 ms
37,996 KB |
testcase_35 | AC | 91 ms
38,040 KB |
testcase_36 | AC | 85 ms
38,088 KB |
testcase_37 | AC | 91 ms
37,676 KB |
testcase_38 | AC | 88 ms
37,496 KB |
testcase_39 | AC | 88 ms
38,088 KB |
testcase_40 | AC | 88 ms
38,196 KB |
testcase_41 | AC | 90 ms
37,996 KB |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | WA | - |
testcase_45 | AC | 91 ms
37,716 KB |
testcase_46 | AC | 89 ms
39,692 KB |
testcase_47 | RE | - |
testcase_48 | WA | - |
testcase_49 | WA | - |
testcase_50 | AC | 89 ms
37,504 KB |
testcase_51 | AC | 91 ms
37,628 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; namespace No355{ public class Program{ public static void Main(string[] args){ Func<string, int> output = s =>{ if(s.Distinct().Count() != s.Length) return -1; Console.WriteLine(string.Join(" ", s.ToCharArray())); return int.Parse(Console.ReadLine().Split(' ')[0]); }; int[] res; for(var i = 1234;; i++){ var x = output(i.ToString()); if(x == 4) return; if(x == 0){ res = i.ToString().Select(c => c - '0').ToArray(); break; } } for(var i = 0; i < 4; i++){ for(var j = 0; j < 10; j++){ res[i] = j; var x = output(string.Join("", res)); if(x == i + 1) break; } } } } }