結果

問題 No.475 最終日 - Writerの怠慢
ユーザー 6soukiti296soukiti29
提出日時 2017-03-22 19:42:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 513 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,788 KB
実行使用メモリ 38,468 KB
最終ジャッジ日時 2023-09-19 05:22:39
合計ジャッジ時間 5,116 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
29,472 KB
testcase_01 AC 134 ms
29,520 KB
testcase_02 AC 132 ms
29,668 KB
testcase_03 AC 145 ms
30,640 KB
testcase_04 AC 254 ms
38,024 KB
testcase_05 AC 281 ms
37,864 KB
testcase_06 AC 234 ms
37,900 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 439 ms
37,876 KB
testcase_10 WA -
testcase_11 AC 272 ms
37,832 KB
testcase_12 AC 190 ms
38,468 KB
testcase_13 AC 200 ms
37,164 KB
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy
N,S,id = map(int,input().split())
A1 = numpy.array(list(map(int,input().split())))
writer = A1[id] + 100 * S
numpy.delete(A1,id)
A = sorted(A1, reverse = True)
P = 1
J = numpy.array([50 * S * (18 + 2 * i) / (8 + 2 * i) for i in range(1,N + 1)])
if A[0] > writer:
	print(0)
else:
	for ai,a in enumerate(A):
		p = 0
		for i in range(N - ai - 1):
			if J[i] + a > writer + 1:
				p = p + 1
			else:
				break
		if p == 0:
			break
		P = P * (1 - p / (N - ai - 1))
		if P == 0:
			break

	print(float(P))
0