結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー ytftytft
提出日時 2022-11-07 10:02:57
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 249 bytes
コンパイル時間 882 ms
コンパイル使用メモリ 86,628 KB
実行使用メモリ 107,924 KB
最終ジャッジ日時 2023-09-28 00:07:05
合計ジャッジ時間 10,459 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 206 ms
100,520 KB
testcase_01 AC 79 ms
76,428 KB
testcase_02 AC 122 ms
88,116 KB
testcase_03 AC 170 ms
99,868 KB
testcase_04 AC 199 ms
107,924 KB
testcase_05 AC 238 ms
107,712 KB
testcase_06 AC 196 ms
107,816 KB
testcase_07 AC 193 ms
101,032 KB
testcase_08 AC 191 ms
101,036 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda:sys.stdin.readline().rstrip()
N=int(input())
L=list(map(int,input().split()))
K=int(input())
m=[0.0,float(max(L))]
while m[1]-m[0]>10**(-10):
	mid=sum(m)/2
	count=0
	for i in L:
		count+=int(i/mid)
	m[K>count]=mid
print(m[1])
0