結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー convexineqconvexineq
提出日時 2020-12-04 23:54:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 325 ms / 5,000 ms
コード長 207 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 82,704 KB
実行使用メモリ 110,300 KB
最終ジャッジ日時 2024-04-26 01:12:41
合計ジャッジ時間 9,332 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 325 ms
107,148 KB
testcase_01 AC 44 ms
60,312 KB
testcase_02 AC 154 ms
88,548 KB
testcase_03 AC 243 ms
101,348 KB
testcase_04 AC 312 ms
110,144 KB
testcase_05 AC 311 ms
110,300 KB
testcase_06 AC 316 ms
110,140 KB
testcase_07 AC 325 ms
106,660 KB
testcase_08 AC 325 ms
106,928 KB
testcase_09 AC 321 ms
106,936 KB
testcase_10 AC 286 ms
106,924 KB
testcase_11 AC 300 ms
110,284 KB
testcase_12 AC 276 ms
106,244 KB
testcase_13 AC 296 ms
102,852 KB
testcase_14 AC 309 ms
105,868 KB
testcase_15 AC 283 ms
107,204 KB
testcase_16 AC 314 ms
110,172 KB
testcase_17 AC 313 ms
110,100 KB
testcase_18 AC 309 ms
110,224 KB
testcase_19 AC 324 ms
106,672 KB
testcase_20 AC 321 ms
107,068 KB
testcase_21 AC 324 ms
107,060 KB
testcase_22 AC 288 ms
106,632 KB
testcase_23 AC 301 ms
110,232 KB
testcase_24 AC 38 ms
52,212 KB
testcase_25 AC 58 ms
70,780 KB
testcase_26 AC 53 ms
66,052 KB
testcase_27 AC 48 ms
63,588 KB
testcase_28 AC 99 ms
80,212 KB
testcase_29 AC 76 ms
76,768 KB
testcase_30 AC 57 ms
70,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
*a, = map(int,input().split())
k = int(input())

ok = 0
ng = 10**9+1
for _ in range(100):
    mid = (ng+ok)/2
    if sum(int(ai/mid) for ai in a) >= k: ok = mid
    else: ng = mid

print(ok)
0