結果

問題 No.2272 多項式乗算 mod 258280327
コンテスト
ユーザー kano_suuri
提出日時 2023-04-14 22:44:00
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 315 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 503 ms
コンパイル使用メモリ 20,568 KB
実行使用メモリ 15,388 KB
最終ジャッジ日時 2026-04-26 15:35:51
合計ジャッジ時間 9,272 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23 WA * 2 TLE * 1 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

degF = int(input())
F = list(map(int, input().split()))
degG = int(input())
G = list(map(int, input().split()))
L = degF + degG + 1
ans = [0]*L

for i in range(degF+1):
    for j in range(degG+1):
        ans[i+j] += F[i]*G[j]
for _ in range(L):
    ans[_] = str(ans[_] % 258280327)
print(L-1)

print(" ".join(ans))
0