結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー roiti46roiti46
提出日時 2015-02-24 15:13:49
言語 Python2
(2.7.18)
結果
AC  
実行時間 2,266 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 475 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 23,740 KB
最終ジャッジ日時 2024-04-25 23:18:57
合計ジャッジ時間 49,477 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,052 ms
23,488 KB
testcase_01 AC 10 ms
6,940 KB
testcase_02 AC 834 ms
12,868 KB
testcase_03 AC 1,488 ms
18,872 KB
testcase_04 AC 2,172 ms
22,164 KB
testcase_05 AC 2,266 ms
22,152 KB
testcase_06 AC 2,148 ms
22,156 KB
testcase_07 AC 2,065 ms
23,740 KB
testcase_08 AC 2,092 ms
23,608 KB
testcase_09 AC 2,107 ms
23,608 KB
testcase_10 AC 1,925 ms
20,576 KB
testcase_11 AC 2,057 ms
21,376 KB
testcase_12 AC 1,819 ms
19,960 KB
testcase_13 AC 1,899 ms
22,156 KB
testcase_14 AC 1,943 ms
22,680 KB
testcase_15 AC 1,759 ms
21,184 KB
testcase_16 AC 2,056 ms
22,028 KB
testcase_17 AC 2,043 ms
22,016 KB
testcase_18 AC 2,031 ms
22,020 KB
testcase_19 AC 2,030 ms
23,736 KB
testcase_20 AC 2,008 ms
23,740 KB
testcase_21 AC 2,055 ms
23,740 KB
testcase_22 AC 1,820 ms
20,588 KB
testcase_23 AC 1,911 ms
21,384 KB
testcase_24 AC 10 ms
6,940 KB
testcase_25 AC 50 ms
6,940 KB
testcase_26 AC 25 ms
6,944 KB
testcase_27 AC 22 ms
6,940 KB
testcase_28 AC 340 ms
9,048 KB
testcase_29 AC 173 ms
7,552 KB
testcase_30 AC 52 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
L = map(int,raw_input().split())
K = int(raw_input())
ans = 10**4
d,u = 0,10**9
for loop in xrange(50):
    cnt = sum(int(l/ans) for l in L)
    if cnt < K: u = ans
    else: d = ans
    ans = (u+d)/2.
print "%.10f"%ans
0