結果

問題 No.475 最終日 - Writerの怠慢
ユーザー vwxyzvwxyz
提出日時 2021-09-25 23:34:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 688 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 17,240 KB
最終ジャッジ日時 2023-09-19 02:47:09
合計ジャッジ時間 3,098 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import sys
readline=sys.stdin.readline

N,S,i=map(int,readline().split())
A=list(map(int,readline().split()))
points=[]
for R in range(1,N):
    points.append(50*S+500*S//(8+2*R))
P=A[i]+100*S
A=A[:i]+A[i+1:]
A.sort(reverse=True)
ans=1.0
points.sort()
i=0
for j,a in enumerate(A):
    while i!=N-1 and points[i]+a<=P:
        i+=1
    ans*=(i-j)/(j+1)
print(ans)
0