結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー roiti46roiti46
提出日時 2015-02-24 15:11:26
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 251 ms / 5,000 ms
コード長 300 bytes
コンパイル時間 1,976 ms
コンパイル使用メモリ 76,324 KB
実行使用メモリ 99,472 KB
最終ジャッジ日時 2024-04-25 23:20:02
合計ジャッジ時間 9,323 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
99,472 KB
testcase_01 AC 74 ms
76,844 KB
testcase_02 AC 142 ms
84,604 KB
testcase_03 AC 196 ms
89,976 KB
testcase_04 AC 238 ms
94,452 KB
testcase_05 AC 240 ms
94,964 KB
testcase_06 AC 248 ms
94,840 KB
testcase_07 AC 239 ms
99,212 KB
testcase_08 AC 237 ms
99,112 KB
testcase_09 AC 240 ms
98,720 KB
testcase_10 AC 225 ms
92,592 KB
testcase_11 AC 231 ms
94,632 KB
testcase_12 AC 219 ms
92,684 KB
testcase_13 AC 227 ms
93,352 KB
testcase_14 AC 234 ms
94,840 KB
testcase_15 AC 215 ms
93,192 KB
testcase_16 AC 241 ms
94,576 KB
testcase_17 AC 235 ms
94,700 KB
testcase_18 AC 251 ms
94,456 KB
testcase_19 AC 247 ms
98,588 KB
testcase_20 AC 245 ms
99,084 KB
testcase_21 AC 243 ms
98,716 KB
testcase_22 AC 233 ms
92,728 KB
testcase_23 AC 233 ms
94,548 KB
testcase_24 AC 73 ms
75,928 KB
testcase_25 AC 82 ms
78,248 KB
testcase_26 AC 83 ms
78,748 KB
testcase_27 AC 81 ms
78,244 KB
testcase_28 AC 105 ms
80,392 KB
testcase_29 AC 97 ms
79,476 KB
testcase_30 AC 82 ms
78,616 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