結果

問題 No.1503 Bitwise And Convolution Twisted
ユーザー da_ab
提出日時 2021-05-07 22:11:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 249 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 20,380 KB
最終ジャッジ日時 2024-09-15 10:08:02
合計ジャッジ時間 5,138 ms
ジャッジサーバーID
(参考情報)
judge1 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 TLE * 1 -- * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#1503 Bitwise And Convolution Twisted

n=int(input())

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

C=[]
for k in range(2**n):
    ck=0
    for i in range(2**n):
        ck+=A[i]*B[i&k]
    C.append(ck % 998244353)
print(*C)


0