結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,872 KB
testcase_01 AC 16 ms
7,908 KB
testcase_02 AC 16 ms
8,224 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 80 ms
16,516 KB
testcase_07 AC 101 ms
16,620 KB
testcase_08 AC 99 ms
16,512 KB
testcase_09 AC 183 ms
16,460 KB
testcase_10 AC 128 ms
16,508 KB
testcase_11 AC 105 ms
16,648 KB
testcase_12 AC 58 ms
17,096 KB
testcase_13 AC 58 ms
14,312 KB
testcase_14 AC 17 ms
7,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,S,id = map(int,input().split())
A1 = list(map(int,input().split()))
writer = A1[id] + 100 * S
A1.pop(id)
A = sorted(A1, reverse = True)
P = 1
J = [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:
				p = p + 1
			else:
				break
		if p == 0:
			break
		P = P * (1 - p/(N - ai - 1))
		if P == 0:
			break
	print(P)
0