結果
問題 | No.475 最終日 - Writerの怠慢 |
ユーザー |
![]() |
提出日時 | 2019-12-17 23:07:00 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 86 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 82,212 KB |
実行使用メモリ | 88,320 KB |
最終ジャッジ日時 | 2024-07-04 21:20:45 |
合計ジャッジ時間 | 2,021 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
N, S, writer_id = map(int, input().split()) a = list(map(int, input().split())) W = a[writer_id]+100*S a = [a[i] for i in range(N) if i!=writer_id] a.sort(reverse=True) j = N ans = 1 for i in range(N-1): while a[i]+50*S+250*S//(4+j-1)<=W and j>1: j -= 1 ans *= max(0, N-j-i) ans /= N-1-i print(ans)