結果

問題 No.766 金魚すくい
ユーザー rlangevinrlangevin
提出日時 2023-03-07 12:35:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 244 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 81,904 KB
実行使用メモリ 83,220 KB
最終ジャッジ日時 2023-10-18 05:28:01
合計ジャッジ時間 6,508 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,436 KB
testcase_01 AC 38 ms
53,436 KB
testcase_02 AC 36 ms
53,436 KB
testcase_03 WA -
testcase_04 AC 37 ms
53,436 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 42 ms
60,024 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 62 ms
82,940 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 37 ms
53,436 KB
testcase_36 AC 38 ms
53,436 KB
testcase_37 AC 64 ms
82,972 KB
testcase_38 AC 64 ms
82,940 KB
testcase_39 AC 65 ms
83,032 KB
testcase_40 AC 63 ms
82,788 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 39 ms
53,436 KB
testcase_44 AC 36 ms
53,436 KB
権限があれば一括ダウンロードができます

ソースコード

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