結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー letrangerjpletrangerjp
提出日時 2017-06-18 23:27:47
言語 Ruby
(3.3.0)
結果
AC  
実行時間 2,259 ms / 5,000 ms
コード長 87 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 136,460 KB
最終ジャッジ日時 2024-04-26 00:06:06
合計ジャッジ時間 52,403 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,134 ms
136,456 KB
testcase_01 AC 84 ms
12,288 KB
testcase_02 AC 914 ms
58,764 KB
testcase_03 AC 1,664 ms
106,024 KB
testcase_04 AC 2,227 ms
105,896 KB
testcase_05 AC 2,216 ms
105,900 KB
testcase_06 AC 2,184 ms
118,124 KB
testcase_07 AC 2,234 ms
122,976 KB
testcase_08 AC 2,209 ms
123,064 KB
testcase_09 AC 2,259 ms
120,964 KB
testcase_10 AC 2,010 ms
121,964 KB
testcase_11 AC 2,110 ms
120,692 KB
testcase_12 AC 1,908 ms
96,332 KB
testcase_13 AC 2,063 ms
109,216 KB
testcase_14 AC 2,104 ms
120,472 KB
testcase_15 AC 1,879 ms
113,088 KB
testcase_16 AC 2,206 ms
121,128 KB
testcase_17 AC 2,205 ms
125,116 KB
testcase_18 AC 2,162 ms
136,260 KB
testcase_19 AC 2,242 ms
114,268 KB
testcase_20 AC 2,121 ms
136,460 KB
testcase_21 AC 2,115 ms
136,360 KB
testcase_22 AC 1,933 ms
104,592 KB
testcase_23 AC 2,065 ms
98,180 KB
testcase_24 AC 84 ms
12,288 KB
testcase_25 AC 127 ms
14,336 KB
testcase_26 AC 103 ms
13,184 KB
testcase_27 AC 97 ms
12,800 KB
testcase_28 AC 426 ms
30,552 KB
testcase_29 AC 258 ms
23,800 KB
testcase_30 AC 128 ms
14,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,*L,K="+$<.read.split*?,
p (0..M=L.sum/K+1.0).bsearch{|i|L.map{|l|l.div i}.sum<K}
0