結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー letrangerjpletrangerjp
提出日時 2017-06-18 13:43:02
言語 Ruby
(3.3.0)
結果
AC  
実行時間 2,088 ms / 5,000 ms
コード長 90 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 88,616 KB
最終ジャッジ日時 2024-04-26 00:00:54
合計ジャッジ時間 50,330 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,088 ms
84,104 KB
testcase_01 AC 90 ms
12,288 KB
testcase_02 AC 844 ms
52,988 KB
testcase_03 AC 1,488 ms
53,356 KB
testcase_04 AC 2,042 ms
84,320 KB
testcase_05 AC 2,042 ms
84,492 KB
testcase_06 AC 2,066 ms
84,280 KB
testcase_07 AC 2,050 ms
85,804 KB
testcase_08 AC 2,058 ms
85,804 KB
testcase_09 AC 2,049 ms
85,800 KB
testcase_10 AC 1,861 ms
86,304 KB
testcase_11 AC 1,935 ms
87,464 KB
testcase_12 AC 1,799 ms
88,232 KB
testcase_13 AC 1,890 ms
85,976 KB
testcase_14 AC 1,967 ms
88,616 KB
testcase_15 AC 1,776 ms
87,004 KB
testcase_16 AC 2,044 ms
84,380 KB
testcase_17 AC 2,041 ms
84,240 KB
testcase_18 AC 2,047 ms
84,496 KB
testcase_19 AC 2,054 ms
85,800 KB
testcase_20 AC 2,088 ms
85,664 KB
testcase_21 AC 2,060 ms
85,672 KB
testcase_22 AC 1,895 ms
86,396 KB
testcase_23 AC 1,993 ms
87,548 KB
testcase_24 AC 87 ms
12,160 KB
testcase_25 AC 126 ms
14,080 KB
testcase_26 AC 99 ms
12,800 KB
testcase_27 AC 96 ms
12,544 KB
testcase_28 AC 409 ms
30,688 KB
testcase_29 AC 242 ms
21,508 KB
testcase_30 AC 131 ms
14,208 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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..M=L.sum/K+1.0).bsearch{|i|L.map{|l|l.div M-i}.sum>=K}+M
0