結果

問題 No.1503 Bitwise And Convolution Twisted
ユーザー da_abda_ab
提出日時 2021-05-07 22:11:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 249 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 15,028 KB
最終ジャッジ日時 2023-10-13 13:18:42
合計ジャッジ時間 4,741 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,248 KB
testcase_01 AC 16 ms
7,744 KB
testcase_02 AC 15 ms
7,744 KB
testcase_03 AC 20 ms
7,924 KB
testcase_04 AC 15 ms
7,744 KB
testcase_05 AC 16 ms
7,884 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

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