結果
問題 | No.2506 Sum of Weighted Powers |
ユーザー |
|
提出日時 | 2023-03-22 01:55:51 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 228 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 119,808 KB |
最終ジャッジ日時 | 2024-09-22 23:46:10 |
合計ジャッジ時間 | 12,122 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 TLE * 1 -- * 18 |
ソースコード
P = 943718401n, x = map(int, input().split())A = list(map(int, input().split()))B = list(map(int, input().split()))C = list(map(int, input().split()))ans = 0for 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) % Pprint(ans % P)