結果

問題 No.1870 Xor Matrix
ユーザー prussian_coderprussian_coder
提出日時 2022-03-19 16:07:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 82,556 KB
実行使用メモリ 101,892 KB
最終ジャッジ日時 2024-04-15 05:32:42
合計ジャッジ時間 3,664 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,836 KB
testcase_01 AC 36 ms
52,236 KB
testcase_02 AC 36 ms
52,836 KB
testcase_03 AC 73 ms
85,464 KB
testcase_04 AC 84 ms
100,380 KB
testcase_05 AC 69 ms
85,496 KB
testcase_06 AC 65 ms
89,576 KB
testcase_07 AC 71 ms
94,544 KB
testcase_08 AC 77 ms
96,116 KB
testcase_09 AC 60 ms
81,764 KB
testcase_10 AC 67 ms
90,132 KB
testcase_11 AC 72 ms
93,224 KB
testcase_12 AC 73 ms
94,572 KB
testcase_13 AC 58 ms
79,980 KB
testcase_14 AC 83 ms
101,892 KB
testcase_15 AC 59 ms
79,632 KB
testcase_16 AC 61 ms
83,656 KB
testcase_17 AC 84 ms
100,232 KB
testcase_18 AC 68 ms
91,300 KB
testcase_19 AC 76 ms
96,656 KB
testcase_20 AC 65 ms
87,980 KB
testcase_21 AC 60 ms
76,396 KB
testcase_22 AC 64 ms
86,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
A=[int(x) for x in input().split()]
B=[int(x) for x in input().split()]
mod=998244353
a=0
for i in range(N):
	a^=A[i]
b=0
for i in range(M):
	b^=B[i]	
if a!=b:
	print(0)
else:
	print(pow(2,(N-1)*(M-1)*20,mod))
0