結果

問題 No.1870 Xor Matrix
ユーザー ああいいああいい
提出日時 2022-03-11 21:32:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 275 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 86,668 KB
実行使用メモリ 107,588 KB
最終ジャッジ日時 2023-10-14 06:22:32
合計ジャッジ時間 4,250 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,148 KB
testcase_01 AC 74 ms
71,088 KB
testcase_02 AC 76 ms
71,104 KB
testcase_03 AC 113 ms
99,140 KB
testcase_04 AC 127 ms
100,352 KB
testcase_05 AC 113 ms
100,260 KB
testcase_06 AC 116 ms
101,708 KB
testcase_07 AC 124 ms
102,640 KB
testcase_08 AC 124 ms
99,828 KB
testcase_09 AC 106 ms
94,868 KB
testcase_10 AC 121 ms
103,608 KB
testcase_11 AC 125 ms
99,304 KB
testcase_12 AC 126 ms
107,588 KB
testcase_13 AC 102 ms
93,616 KB
testcase_14 AC 128 ms
102,448 KB
testcase_15 AC 104 ms
92,688 KB
testcase_16 AC 108 ms
96,080 KB
testcase_17 AC 133 ms
99,932 KB
testcase_18 AC 120 ms
101,036 KB
testcase_19 AC 125 ms
100,668 KB
testcase_20 AC 114 ms
100,508 KB
testcase_21 AC 99 ms
90,524 KB
testcase_22 AC 110 ms
99,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())

A = list(map(int,input().split()))
B = list(map(int,input().split()))
S = 0
T = 0
for a in A:
    S ^= a
for b in B:
    T ^= b
import sys
if S != T:
    print(0)
    exit()

P = 998244353
C = pow(2,20,P)
ans = pow(C,(N-1)*(M-1),P)
print(ans)
0