結果
| 問題 |
No.574 正多面体サイコロ
|
| コンテスト | |
| ユーザー |
itai_daboku
|
| 提出日時 | 2019-08-06 22:55:02 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 58,284 KB |
| 最終ジャッジ日時 | 2024-07-18 14:27:36 |
| 合計ジャッジ時間 | 21,538 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 20 |
ソースコード
from scipy.special import comb
f,n,k=map(int,input().split())
ex=0
for i in range(f):
p_i = comb(n,k)*((f-k+1)/f)**(k)*(k/f)**(n-k) - comb(n,k)*((f-k)/f)**(k)*(k-1/f)**(n-k)
ex+=(i+1)*pi
print(ex)
itai_daboku