結果

問題 No.305 鍵(2)
ユーザー letrangerjpletrangerjp
提出日時 2017-10-17 20:14:30
言語 Ruby
(3.3.0)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 92 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 11,416 KB
実行使用メモリ 31,348 KB
平均クエリ数 80.85
最終ジャッジ日時 2023-09-24 01:34:29
合計ジャッジ時間 2,535 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
30,992 KB
testcase_01 AC 111 ms
31,344 KB
testcase_02 AC 108 ms
30,836 KB
testcase_03 AC 108 ms
30,944 KB
testcase_04 AC 108 ms
30,700 KB
testcase_05 AC 107 ms
30,844 KB
testcase_06 AC 105 ms
31,316 KB
testcase_07 AC 107 ms
31,348 KB
testcase_08 AC 107 ms
30,648 KB
testcase_09 AC 107 ms
30,688 KB
testcase_10 AC 108 ms
31,172 KB
testcase_11 AC 110 ms
30,820 KB
testcase_12 AC 109 ms
30,840 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s=$>.sync=""
loop{s=(?0..?9).max_by{|c|puts"%010d"%(c+s).to_i(10)
(9<n=gets.hex)&&exit
n}+s}
0