結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
31,144 KB
testcase_01 AC 109 ms
31,104 KB
testcase_02 AC 107 ms
31,040 KB
testcase_03 AC 107 ms
30,936 KB
testcase_04 AC 108 ms
30,808 KB
testcase_05 AC 108 ms
30,920 KB
testcase_06 AC 105 ms
31,140 KB
testcase_07 AC 108 ms
30,988 KB
testcase_08 AC 108 ms
30,728 KB
testcase_09 AC 108 ms
30,992 KB
testcase_10 AC 106 ms
31,048 KB
testcase_11 AC 105 ms
30,928 KB
testcase_12 AC 107 ms
31,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=$>.sync=0
(A=0..9).map{|i|a=A.map{|j|puts"%010d"%b=a+j*10**i
(9<n=gets.hex)&&exit
[n,b]}.max[1]}
0