結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー zonzo34zonzo34
提出日時 2021-12-09 11:26:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,390 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 82,168 KB
実行使用メモリ 108,336 KB
最終ジャッジ日時 2024-04-26 01:24:11
合計ジャッジ時間 34,131 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 869 ms
102,152 KB
testcase_01 AC 45 ms
59,048 KB
testcase_02 AC 880 ms
87,192 KB
testcase_03 AC 1,670 ms
98,112 KB
testcase_04 AC 1,591 ms
106,476 KB
testcase_05 AC 1,585 ms
106,496 KB
testcase_06 AC 1,283 ms
106,600 KB
testcase_07 AC 2,296 ms
102,256 KB
testcase_08 AC 2,390 ms
102,140 KB
testcase_09 AC 1,850 ms
102,120 KB
testcase_10 AC 1,492 ms
103,052 KB
testcase_11 AC 1,536 ms
106,180 KB
testcase_12 AC 1,129 ms
102,864 KB
testcase_13 AC 2,090 ms
104,880 KB
testcase_14 AC 2,186 ms
108,336 KB
testcase_15 AC 1,568 ms
104,148 KB
testcase_16 AC 750 ms
106,500 KB
testcase_17 AC 672 ms
106,524 KB
testcase_18 AC 642 ms
106,340 KB
testcase_19 AC 690 ms
102,000 KB
testcase_20 AC 694 ms
102,044 KB
testcase_21 AC 643 ms
102,316 KB
testcase_22 AC 566 ms
103,060 KB
testcase_23 AC 601 ms
106,176 KB
testcase_24 AC 39 ms
52,828 KB
testcase_25 AC 104 ms
69,392 KB
testcase_26 AC 71 ms
65,184 KB
testcase_27 AC 63 ms
63,088 KB
testcase_28 AC 432 ms
79,724 KB
testcase_29 AC 254 ms
76,688 KB
testcase_30 AC 105 ms
69,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ok,ng=0,10**9
for i in range(100):
    md=(ok+ng)/2
    temp=0
    for l in L:
        temp+=l//md
    if K<=temp:
        ok=md
    else:
        ng=md
print(ok)
0