結果

問題 No.2506 Sum of Weighted Powers
ユーザー suisensuisen
提出日時 2023-03-22 01:55:51
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 315 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 81,804 KB
実行使用メモリ 118,160 KB
最終ジャッジ日時 2023-10-24 06:58:55
合計ジャッジ時間 12,324 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,476 KB
testcase_01 AC 36 ms
53,476 KB
testcase_02 AC 36 ms
53,476 KB
testcase_03 AC 191 ms
62,172 KB
testcase_04 AC 52 ms
59,660 KB
testcase_05 AC 44 ms
59,660 KB
testcase_06 AC 540 ms
62,324 KB
testcase_07 AC 126 ms
62,172 KB
testcase_08 AC 1,329 ms
64,372 KB
testcase_09 AC 302 ms
62,172 KB
testcase_10 AC 968 ms
64,372 KB
testcase_11 AC 1,097 ms
64,372 KB
testcase_12 AC 45 ms
59,660 KB
testcase_13 AC 118 ms
62,172 KB
testcase_14 AC 45 ms
59,660 KB
testcase_15 AC 47 ms
59,660 KB
testcase_16 AC 77 ms
60,124 KB
testcase_17 AC 176 ms
62,172 KB
testcase_18 AC 391 ms
62,172 KB
testcase_19 AC 70 ms
59,988 KB
testcase_20 AC 198 ms
62,172 KB
testcase_21 AC 1,039 ms
64,372 KB
testcase_22 AC 315 ms
62,172 KB
testcase_23 TLE -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

P = 943718401

n, x = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = list(map(int, input().split()))

ans = 0

for j in range(n + 1):
    for k in range(n + 1 - j):
        ans += A[j + k] * B[j] % P * C[k] % P * pow(x, (j + k) * j * k, P) % P

print(ans % P)
0