結果
| 問題 | No.813 ユキちゃんの冒険 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-24 17:25:19 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 976 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 20,732 KB |
| 最終ジャッジ日時 | 2026-06-05 23:10:32 |
| 合計ジャッジ時間 | 4,322 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 15 RE * 1 |
ソースコード
n=int(input())
p=float(input())
q=float(input())
ans=p
if q==0:
print(p)
elif p==0:
print(0)
else:
coef1=p/(1-p**2)
coef2=q*(1-pow(q**2,n-1))/(1-q**2)
ans+=q*coef1*coef2
print(ans)