結果

問題 No.475 最終日 - Writerの怠慢
ユーザー 6soukiti296soukiti29
提出日時 2017-03-22 17:47:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 397 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 10,900 KB
実行使用メモリ 19,172 KB
最終ジャッジ日時 2023-09-19 05:17:51
合計ジャッジ時間 17,078 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 TLE -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 875 ms
18,756 KB
testcase_13 TLE -
testcase_14 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import Fraction
N,S,id = map(int,input().split())
A = list(map(int,input().split()))
writer = A.pop(id) + 100 * S
A.sort()
A.reverse()
P = 1
for ai,a in enumerate(A):
	p = 0
	for i in range(1,N + 1):
		j = 50 * S * Fraction(18 + 2 * i, 8 + 2 * i)
		if j + a > writer:
			p = p + 1
		else:
			break
		print(p)
	P = P * (1 - Fraction(p,N - ai - 1))
	if P == 0:
		break
print(float(P))
0