結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー roiti46roiti46
提出日時 2015-02-24 15:10:20
言語 Python2
(2.7.18)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 300 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 23,876 KB
最終ジャッジ日時 2024-04-25 23:24:10
合計ジャッジ時間 26,034 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 12 ms
6,812 KB
testcase_02 AC 2,092 ms
12,884 KB
testcase_03 AC 4,121 ms
19,012 KB
testcase_04 TLE -
testcase_05 TLE -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 AC 4,903 ms
19,972 KB
testcase_13 TLE -
testcase_14 TLE -
testcase_15 AC 4,778 ms
21,196 KB
testcase_16 TLE -
testcase_17 TLE -
testcase_18 TLE -
testcase_19 TLE -
testcase_20 TLE -
testcase_21 TLE -
testcase_22 AC 4,889 ms
20,604 KB
testcase_23 TLE -
testcase_24 AC 12 ms
6,940 KB
testcase_25 AC 118 ms
6,944 KB
testcase_26 AC 49 ms
6,940 KB
testcase_27 AC 37 ms
6,940 KB
testcase_28 AC 891 ms
9,064 KB
testcase_29 AC 443 ms
7,808 KB
testcase_30 AC 123 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect
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(100):
    cnt = 0
    for l in L:
        cnt += int(l/ans)
    if cnt < K:
        u = ans
    else:
        d = ans
    ans = (u+d)/2.
print "%.10f"%ans
0