結果

問題 No.305 鍵(2)
ユーザー letrangerjpletrangerjp
提出日時 2017-10-18 06:41:41
言語 Ruby
(3.3.0)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 82 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 11,552 KB
実行使用メモリ 31,564 KB
平均クエリ数 80.85
最終ジャッジ日時 2023-09-24 01:34:46
合計ジャッジ時間 2,249 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
31,420 KB
testcase_01 AC 89 ms
31,356 KB
testcase_02 AC 90 ms
30,756 KB
testcase_03 AC 93 ms
31,564 KB
testcase_04 AC 98 ms
30,984 KB
testcase_05 AC 93 ms
30,960 KB
testcase_06 AC 91 ms
30,832 KB
testcase_07 AC 95 ms
31,340 KB
testcase_08 AC 92 ms
31,116 KB
testcase_09 AC 91 ms
31,372 KB
testcase_10 AC 93 ms
30,764 KB
testcase_11 AC 95 ms
30,772 KB
testcase_12 AC 97 ms
31,436 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s=$>.sync=""
loop{s=(?0..?9).max_by{|c|puts (c+s).rjust 10,?0
gets[9]?exit: $_}+s}
0