結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
31,084 KB
testcase_01 AC 91 ms
30,828 KB
testcase_02 AC 90 ms
31,264 KB
testcase_03 AC 92 ms
31,132 KB
testcase_04 AC 94 ms
30,956 KB
testcase_05 AC 93 ms
31,184 KB
testcase_06 AC 87 ms
30,864 KB
testcase_07 AC 91 ms
31,392 KB
testcase_08 AC 97 ms
31,264 KB
testcase_09 AC 93 ms
31,008 KB
testcase_10 AC 92 ms
30,888 KB
testcase_11 AC 91 ms
31,452 KB
testcase_12 AC 92 ms
31,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

(A=0..9).inject(STDOUT.sync=[p]*10){|a,i|A.map{|j|a[i]=j
puts a.map{|n|n||0}*""
(9<n=gets.hex)&&exit
[n,a.dup]}.max[1]}
0