結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,756 KB
testcase_01 AC 16 ms
7,876 KB
testcase_02 AC 17 ms
7,768 KB
testcase_03 AC 27 ms
9,068 KB
testcase_04 AC 138 ms
16,672 KB
testcase_05 AC 139 ms
16,668 KB
testcase_06 AC 141 ms
16,560 KB
testcase_07 AC 146 ms
16,692 KB
testcase_08 AC 144 ms
16,780 KB
testcase_09 AC 147 ms
16,728 KB
testcase_10 AC 146 ms
16,636 KB
testcase_11 AC 144 ms
16,688 KB
testcase_12 AC 116 ms
17,144 KB
testcase_13 AC 120 ms
14,360 KB
testcase_14 AC 16 ms
7,796 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)/(N-j-1)
print(ans)
0