結果
| 問題 | No.754 畳み込みの和 | 
| コンテスト | |
| ユーザー |  htkb | 
| 提出日時 | 2018-12-14 09:37:02 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 135 ms / 5,000 ms | 
| コード長 | 238 bytes | 
| コンパイル時間 | 283 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 20,948 KB | 
| 最終ジャッジ日時 | 2024-09-25 04:57:26 | 
| 合計ジャッジ時間 | 1,253 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 3 | 
ソースコード
import sys from itertools import accumulate n = int(input())+1 a = list(map(int, (sys.stdin.readline() for _ in [0]*n))) b = list(accumulate(map(int, sys.stdin))) mod = 10**9+7 print(sum(an*bn % mod for an, bn in zip(a, b[::-1])) % mod)
