結果

問題 No.475 最終日 - Writerの怠慢
ユーザー vwxyzvwxyz
提出日時 2021-09-25 23:29:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 416 bytes
コンパイル時間 1,071 ms
コンパイル使用メモリ 10,832 KB
実行使用メモリ 17,532 KB
最終ジャッジ日時 2023-09-19 02:47:06
合計ジャッジ時間 21,176 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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