結果

問題 No.180 美しいWhitespace (2)
ユーザー gigurururugigurururu
提出日時 2015-04-06 09:49:07
言語 Ruby
(3.2.2)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 108 bytes
コンパイル時間 599 ms
コンパイル使用メモリ 11,280 KB
実行使用メモリ 15,812 KB
最終ジャッジ日時 2023-08-26 23:16:11
合計ジャッジ時間 5,611 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
15,280 KB
testcase_01 AC 72 ms
15,172 KB
testcase_02 AC 71 ms
15,316 KB
testcase_03 AC 70 ms
15,292 KB
testcase_04 AC 72 ms
15,124 KB
testcase_05 AC 72 ms
15,068 KB
testcase_06 AC 78 ms
15,120 KB
testcase_07 AC 78 ms
15,384 KB
testcase_08 AC 79 ms
15,424 KB
testcase_09 AC 91 ms
15,556 KB
testcase_10 AC 95 ms
15,696 KB
testcase_11 AC 89 ms
15,680 KB
testcase_12 AC 88 ms
15,812 KB
testcase_13 AC 88 ms
15,592 KB
testcase_14 AC 93 ms
15,536 KB
testcase_15 AC 93 ms
15,720 KB
testcase_16 AC 87 ms
15,700 KB
testcase_17 AC 89 ms
15,776 KB
testcase_18 AC 92 ms
15,532 KB
testcase_19 AC 89 ms
15,524 KB
testcase_20 AC 71 ms
15,112 KB
testcase_21 AC 69 ms
15,156 KB
testcase_22 AC 71 ms
15,068 KB
testcase_23 AC 70 ms
15,084 KB
testcase_24 AC 73 ms
15,028 KB
testcase_25 AC 72 ms
15,196 KB
testcase_26 AC 70 ms
15,288 KB
testcase_27 AC 71 ms
15,252 KB
testcase_28 AC 72 ms
15,284 KB
testcase_29 AC 73 ms
15,112 KB
testcase_30 AC 89 ms
15,664 KB
testcase_31 AC 92 ms
15,636 KB
testcase_32 AC 91 ms
15,696 KB
testcase_33 AC 94 ms
15,536 KB
testcase_34 AC 91 ms
15,560 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
T=$<.map &:split
f=->w{n=T.map{|a,b|a.to_i+b.to_i*w};n.max-n.min}
p (1..1<<30).bsearch{|i|f[i]<=f[i+1]}
0