結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー letrangerjpletrangerjp
提出日時 2017-06-18 23:28:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 2,343 ms / 5,000 ms
コード長 82 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 136,424 KB
最終ジャッジ日時 2024-04-26 00:02:29
合計ジャッジ時間 53,463 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,197 ms
136,424 KB
testcase_01 AC 85 ms
12,288 KB
testcase_02 AC 920 ms
58,944 KB
testcase_03 AC 1,690 ms
105,828 KB
testcase_04 AC 2,258 ms
105,800 KB
testcase_05 AC 2,276 ms
107,080 KB
testcase_06 AC 2,270 ms
119,740 KB
testcase_07 AC 2,328 ms
121,512 KB
testcase_08 AC 2,343 ms
121,472 KB
testcase_09 AC 2,312 ms
120,752 KB
testcase_10 AC 2,044 ms
121,964 KB
testcase_11 AC 2,145 ms
120,332 KB
testcase_12 AC 1,952 ms
96,144 KB
testcase_13 AC 2,130 ms
110,876 KB
testcase_14 AC 2,162 ms
118,692 KB
testcase_15 AC 1,927 ms
113,236 KB
testcase_16 AC 2,232 ms
122,676 KB
testcase_17 AC 2,212 ms
126,672 KB
testcase_18 AC 2,193 ms
136,260 KB
testcase_19 AC 2,276 ms
112,568 KB
testcase_20 AC 2,155 ms
136,328 KB
testcase_21 AC 2,161 ms
136,328 KB
testcase_22 AC 1,988 ms
104,732 KB
testcase_23 AC 2,097 ms
99,524 KB
testcase_24 AC 87 ms
12,288 KB
testcase_25 AC 130 ms
14,464 KB
testcase_26 AC 101 ms
13,056 KB
testcase_27 AC 97 ms
12,672 KB
testcase_28 AC 431 ms
30,692 KB
testcase_29 AC 261 ms
23,736 KB
testcase_30 AC 131 ms
14,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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