結果

問題 No.305 鍵(2)
ユーザー letrangerjpletrangerjp
提出日時 2017-10-17 19:19:37
言語 Ruby
(3.3.0)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 11,332 KB
実行使用メモリ 31,392 KB
平均クエリ数 86.69
最終ジャッジ日時 2023-09-24 01:33:58
合計ジャッジ時間 2,474 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
31,392 KB
testcase_01 AC 109 ms
31,220 KB
testcase_02 AC 102 ms
31,116 KB
testcase_03 AC 104 ms
30,560 KB
testcase_04 AC 105 ms
30,940 KB
testcase_05 AC 104 ms
30,616 KB
testcase_06 AC 103 ms
30,860 KB
testcase_07 AC 108 ms
31,392 KB
testcase_08 AC 110 ms
30,804 KB
testcase_09 AC 103 ms
30,992 KB
testcase_10 AC 99 ms
31,168 KB
testcase_11 AC 103 ms
31,292 KB
testcase_12 AC 102 ms
30,960 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

(0..9).inject([p]*10){|a,i|
  (0..9).map{|j|
    a[i]=j
    puts s = a.map{|n|n||0}*""
    STDOUT.flush
    exit if 10 == n = gets.to_i
    [n, a.dup]
  }.max[1]
}
0