結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー Ryota_PyRyota_Py
提出日時 2022-04-03 20:28:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 2,254 ms / 5,000 ms
コード長 690 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 82,788 KB
実行使用メモリ 107,196 KB
最終ジャッジ日時 2024-04-26 01:32:33
合計ジャッジ時間 32,019 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 825 ms
102,144 KB
testcase_01 AC 46 ms
61,208 KB
testcase_02 AC 851 ms
88,044 KB
testcase_03 AC 1,612 ms
98,768 KB
testcase_04 AC 1,505 ms
106,944 KB
testcase_05 AC 1,501 ms
107,160 KB
testcase_06 AC 1,198 ms
106,876 KB
testcase_07 AC 2,170 ms
100,304 KB
testcase_08 AC 2,254 ms
100,296 KB
testcase_09 AC 1,702 ms
100,176 KB
testcase_10 AC 1,376 ms
103,272 KB
testcase_11 AC 1,434 ms
107,048 KB
testcase_12 AC 1,041 ms
103,216 KB
testcase_13 AC 2,013 ms
100,212 KB
testcase_14 AC 2,126 ms
99,808 KB
testcase_15 AC 1,521 ms
99,320 KB
testcase_16 AC 690 ms
107,196 KB
testcase_17 AC 611 ms
107,008 KB
testcase_18 AC 587 ms
107,004 KB
testcase_19 AC 634 ms
100,200 KB
testcase_20 AC 636 ms
100,224 KB
testcase_21 AC 607 ms
100,012 KB
testcase_22 AC 523 ms
103,532 KB
testcase_23 AC 561 ms
106,956 KB
testcase_24 AC 41 ms
54,660 KB
testcase_25 AC 101 ms
71,684 KB
testcase_26 AC 69 ms
67,340 KB
testcase_27 AC 60 ms
64,796 KB
testcase_28 AC 404 ms
80,316 KB
testcase_29 AC 247 ms
77,504 KB
testcase_30 AC 101 ms
73,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,math,collections,itertools
from collections import deque
INF = 10**18
def I(): return int(input())
def MI(): return map(int,input().split())
def LI(): return list(map(int,input().split()))
def TI(): return tuple(map(int,input().split()))
def S(): return input()
def LS(): return list(input().split())
def TS(): return tuple(input().split())
def lcm(a, b): return a * b // math.gcd(a, b)
MOD1 = 10**9+7 #500000004
MOD2 = 998244353 #499122177
sys.setrecursionlimit(10**9)

a = I()
l = LI()
k = I()
m = 10**(-9)
M = 10**9
for i in range(100):
    mid = (m+M)/2
    s = 0
    for j in range(a):
        s += l[j]//mid
    if s >= k:
        m = mid
    else:
        M = mid
print(m)
0