結果

問題 No.766 金魚すくい
ユーザー rlangevin
提出日時 2023-03-07 12:35:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 82,080 KB
実行使用メモリ 84,228 KB
最終ジャッジ日時 2024-09-18 02:06:34
合計ジャッジ時間 4,218 ms
ジャッジサーバーID
(参考情報)
judge4 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M, P = map(int, input().split())
V = list(map(int, input().split()))
mod = 10 ** 9 + 7
ans = 0
P = P * pow(100, mod - 2, mod) % mod
P = pow(P, M, mod)
V.reverse()
for i in range(N):
    ans += V[i]
    ans *= 1 - P
    ans %= mod

print(ans)
0