結果

問題 No.67 よくある棒を切る問題 (1)
ユーザー kyuridenamidakyuridenamida
提出日時 2016-03-11 14:27:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 256 ms / 5,000 ms
コード長 455 bytes
コンパイル時間 644 ms
コンパイル使用メモリ 82,496 KB
実行使用メモリ 186,240 KB
最終ジャッジ日時 2024-04-25 23:39:06
合計ジャッジ時間 7,534 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 250 ms
185,888 KB
testcase_01 AC 42 ms
58,864 KB
testcase_02 AC 124 ms
111,520 KB
testcase_03 AC 191 ms
152,228 KB
testcase_04 AC 244 ms
179,952 KB
testcase_05 AC 251 ms
180,064 KB
testcase_06 AC 249 ms
180,052 KB
testcase_07 AC 248 ms
186,096 KB
testcase_08 AC 248 ms
186,124 KB
testcase_09 AC 251 ms
186,060 KB
testcase_10 AC 230 ms
169,740 KB
testcase_11 AC 243 ms
174,920 KB
testcase_12 AC 226 ms
165,928 KB
testcase_13 AC 235 ms
172,216 KB
testcase_14 AC 242 ms
175,888 KB
testcase_15 AC 218 ms
165,108 KB
testcase_16 AC 252 ms
179,792 KB
testcase_17 AC 252 ms
180,060 KB
testcase_18 AC 251 ms
179,692 KB
testcase_19 AC 255 ms
186,240 KB
testcase_20 AC 252 ms
185,988 KB
testcase_21 AC 256 ms
185,988 KB
testcase_22 AC 234 ms
169,568 KB
testcase_23 AC 242 ms
174,692 KB
testcase_24 AC 38 ms
54,076 KB
testcase_25 AC 52 ms
64,996 KB
testcase_26 AC 51 ms
63,388 KB
testcase_27 AC 45 ms
60,748 KB
testcase_28 AC 82 ms
84,256 KB
testcase_29 AC 62 ms
72,328 KB
testcase_30 AC 52 ms
65,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
'''
	入出力ライブラリ
'''
_allinput = []
for inp in sys.stdin:
	_allinput += inp.strip().split(" ")
def _input():
	for put in _allinput:
		yield put
_obj = _input();
def __input():
	return _obj.__next__()
def nextInt():
	return int(__input())




n = nextInt()
lst = [nextInt() for i in range(0,n)]
K = nextInt()

l,r = 0, 1000000000
for _ in range(60):
	m = (l+r)/2
	if sum([int(i/m) for i in lst]) < K:
		r = m
	else:
		l = m
print(l)
0