結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー mmd6688mmd6688
提出日時 2023-03-07 08:43:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,430 ms / 5,000 ms
コード長 236 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 81,584 KB
実行使用メモリ 193,396 KB
最終ジャッジ日時 2023-10-18 05:25:34
合計ジャッジ時間 22,287 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 632 ms
192,376 KB
testcase_01 AC 43 ms
59,576 KB
testcase_02 AC 549 ms
117,028 KB
testcase_03 AC 1,027 ms
125,848 KB
testcase_04 AC 979 ms
141,512 KB
testcase_05 AC 975 ms
141,528 KB
testcase_06 AC 842 ms
151,000 KB
testcase_07 AC 1,411 ms
192,328 KB
testcase_08 AC 1,430 ms
192,316 KB
testcase_09 AC 1,098 ms
192,324 KB
testcase_10 AC 907 ms
134,640 KB
testcase_11 AC 933 ms
139,888 KB
testcase_12 AC 730 ms
181,676 KB
testcase_13 AC 1,277 ms
164,812 KB
testcase_14 AC 1,332 ms
168,088 KB
testcase_15 AC 980 ms
156,200 KB
testcase_16 AC 527 ms
166,600 KB
testcase_17 AC 477 ms
169,708 KB
testcase_18 AC 456 ms
153,020 KB
testcase_19 AC 503 ms
192,316 KB
testcase_20 AC 514 ms
192,316 KB
testcase_21 AC 476 ms
192,304 KB
testcase_22 AC 414 ms
183,792 KB
testcase_23 AC 437 ms
193,396 KB
testcase_24 AC 38 ms
53,368 KB
testcase_25 AC 78 ms
66,252 KB
testcase_26 AC 61 ms
64,204 KB
testcase_27 AC 53 ms
61,780 KB
testcase_28 AC 267 ms
86,772 KB
testcase_29 AC 159 ms
73,340 KB
testcase_30 AC 80 ms
66,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = list(map(int, input().split()))
K = int(input())

low = 0
high = max(L)

for _ in range(60):
    mid = (low + high) / 2
    if sum([i//mid for i in L]) < K:
        high = mid
    else:
        low = mid

print(low)
0