結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー syunsukesyunsuke
提出日時 2019-09-23 20:59:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 1,295 ms
コンパイル使用メモリ 81,352 KB
実行使用メモリ 107,388 KB
最終ジャッジ日時 2023-10-19 08:16:49
合計ジャッジ時間 19,190 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 531 ms
101,624 KB
testcase_01 WA -
testcase_02 AC 447 ms
86,412 KB
testcase_03 AC 829 ms
97,436 KB
testcase_04 AC 758 ms
105,584 KB
testcase_05 AC 756 ms
105,584 KB
testcase_06 AC 661 ms
105,584 KB
testcase_07 AC 1,135 ms
101,228 KB
testcase_08 AC 1,135 ms
101,300 KB
testcase_09 AC 898 ms
101,404 KB
testcase_10 AC 707 ms
102,056 KB
testcase_11 AC 730 ms
105,456 KB
testcase_12 AC 566 ms
101,868 KB
testcase_13 AC 1,014 ms
103,980 KB
testcase_14 AC 1,072 ms
107,388 KB
testcase_15 AC 795 ms
103,636 KB
testcase_16 AC 408 ms
105,584 KB
testcase_17 AC 365 ms
105,584 KB
testcase_18 AC 351 ms
105,584 KB
testcase_19 AC 386 ms
101,300 KB
testcase_20 AC 400 ms
101,300 KB
testcase_21 AC 368 ms
101,300 KB
testcase_22 AC 321 ms
101,988 KB
testcase_23 AC 338 ms
105,400 KB
testcase_24 WA -
testcase_25 AC 74 ms
66,332 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 229 ms
78,924 KB
testcase_29 AC 146 ms
75,904 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

H=10**9
L=0

for i in range(50):
    M=(H+L)/2
    ans=0
    for l in A:
        ans+=l//M
    if ans<K:
        H=M
    else:
        L=M
print(M)
    
0