結果
問題 | No.754 畳み込みの和 |
ユーザー | Ohnuma |
提出日時 | 2020-04-11 10:03:37 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
WA
|
実行時間 | - |
コード長 | 219 bytes |
コンパイル時間 | 275 ms |
コンパイル使用メモリ | 11,808 KB |
実行使用メモリ | 49,632 KB |
最終ジャッジ日時 | 2023-10-17 23:58:34 |
合計ジャッジ時間 | 6,126 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
ソースコード
import numpy as np mod =10**9+7 n = int(input()) A = list(int(input()) for _ in range(n+1)) B = list(int(input()) for _ in range(n+1)) B = np.cumsum(B) ans = 0 for i in range(n+1): ans += A[i]*B[n-i] print(ans%mod)