結果

問題 No.995 タピオカオイシクナーレ
ユーザー chinchillachinchilla
提出日時 2020-02-21 22:33:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 237 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-17 08:09:47
合計ジャッジ時間 2,313 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,496 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 29 ms
10,624 KB
testcase_03 AC 29 ms
10,624 KB
testcase_04 AC 29 ms
10,624 KB
testcase_05 AC 29 ms
10,624 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 27 ms
10,752 KB
testcase_10 WA -
testcase_11 AC 27 ms
10,624 KB
testcase_12 AC 28 ms
10,752 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 57 ms
10,752 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 54 ms
10,624 KB
testcase_21 AC 57 ms
10,624 KB
testcase_22 WA -
testcase_23 AC 55 ms
10,752 KB
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, itertools
md = 1000000007
h = (md+1)//2
n, m, k, p, q = map(int, input().split())
bi = sum(map(int, itertools.islice(sys.stdin, m)))
bo = sum(map(int, sys.stdin))
print(((bi+bo)+(bi-bo)*pow(2*p*pow(q, -1, md)-1, k, md))*h%md)
0