結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー letrangerjpletrangerjp
提出日時 2017-06-18 13:38:32
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 86 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 88,724 KB
最終ジャッジ日時 2024-04-09 19:43:41
合計ジャッジ時間 47,761 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,034 ms
83,976 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 2,016 ms
84,360 KB
testcase_17 AC 1,991 ms
84,372 KB
testcase_18 AC 1,989 ms
84,376 KB
testcase_19 AC 2,010 ms
85,712 KB
testcase_20 AC 2,011 ms
85,804 KB
testcase_21 AC 2,010 ms
85,836 KB
testcase_22 AC 1,815 ms
86,388 KB
testcase_23 AC 1,927 ms
87,796 KB
testcase_24 AC 74 ms
12,160 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

eval"N,*L,K="+`dd`.split*?,
p -(0.0..M=L.sum).bsearch{|i|L.map{|l|l.div M-i}.sum>=K}+M
0