結果

問題 No.305 鍵(2)
ユーザー cielciel
提出日時 2016-05-19 01:44:55
言語 Ruby
(3.3.0)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 11,340 KB
実行使用メモリ 31,372 KB
平均クエリ数 92.62
最終ジャッジ日時 2023-09-23 23:53:34
合計ジャッジ時間 2,572 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
31,096 KB
testcase_01 AC 109 ms
30,848 KB
testcase_02 AC 108 ms
30,720 KB
testcase_03 AC 114 ms
31,216 KB
testcase_04 AC 108 ms
30,736 KB
testcase_05 AC 107 ms
30,900 KB
testcase_06 AC 103 ms
30,756 KB
testcase_07 AC 108 ms
31,192 KB
testcase_08 AC 110 ms
30,836 KB
testcase_09 AC 108 ms
31,068 KB
testcase_10 AC 107 ms
31,004 KB
testcase_11 AC 108 ms
30,708 KB
testcase_12 AC 108 ms
31,372 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s='';10.times{|j|s+=10.times.max_by{|i|puts '0'*j+i.to_s+'0'*(10-j-1);STDOUT.flush;'10 unlocked'==(t=gets.chop)&&exit;t.to_i}.to_s};puts s
0