結果
問題 | No.355 数当てゲーム(2) |
ユーザー | AreTrash |
提出日時 | 2016-09-05 09:55:48 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,154 bytes |
コンパイル時間 | 3,214 ms |
コンパイル使用メモリ | 107,872 KB |
実行使用メモリ | 41,896 KB |
平均クエリ数 | 34.54 |
最終ジャッジ日時 | 2023-09-23 11:27:50 |
合計ジャッジ時間 | 16,160 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 89 ms
39,556 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 91 ms
40,156 KB |
testcase_07 | WA | - |
testcase_08 | AC | 91 ms
37,640 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 92 ms
37,984 KB |
testcase_14 | WA | - |
testcase_15 | AC | 92 ms
39,608 KB |
testcase_16 | WA | - |
testcase_17 | AC | 92 ms
37,368 KB |
testcase_18 | RE | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 92 ms
37,936 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 | 92 ms
38,176 KB |
testcase_34 | AC | 92 ms
37,660 KB |
testcase_35 | AC | 93 ms
39,568 KB |
testcase_36 | AC | 88 ms
37,956 KB |
testcase_37 | AC | 93 ms
37,972 KB |
testcase_38 | AC | 93 ms
37,412 KB |
testcase_39 | AC | 92 ms
37,440 KB |
testcase_40 | AC | 91 ms
37,800 KB |
testcase_41 | AC | 91 ms
38,092 KB |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | WA | - |
testcase_45 | AC | 91 ms
40,132 KB |
testcase_46 | AC | 92 ms
37,808 KB |
testcase_47 | RE | - |
testcase_48 | WA | - |
testcase_49 | WA | - |
testcase_50 | AC | 90 ms
38,184 KB |
testcase_51 | AC | 94 ms
37,636 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++){ var max = 0; var t = 0; for(var j = 0; j < 10; j++){ res[i] = j; var x = output(string.Join("", res)); if(x == 4) return; if(x > max){ t = j; max = x; } } res[i] = t; } } } }