結果

問題 No.475 最終日 - Writerの怠慢
ユーザー vwxyzvwxyz
提出日時 2021-09-25 23:29:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 416 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 18,968 KB
最終ジャッジ日時 2024-07-05 15:33:14
合計ジャッジ時間 17,571 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import deque
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
points.sort()
i=0
for j,a in enumerate(A):
    while i!=N-1 and points[i]+a<=P:
        i+=1
    ans*=(i-j)
for i in range(1,N):
    ans/=i
print(ans)
0