結果

問題 No.1870 Xor Matrix
ユーザー 👑 rin204rin204
提出日時 2022-03-11 21:37:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 107,884 KB
最終ジャッジ日時 2023-10-14 06:30:28
合計ジャッジ時間 4,205 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,352 KB
testcase_01 AC 74 ms
71,448 KB
testcase_02 AC 73 ms
71,268 KB
testcase_03 AC 110 ms
101,128 KB
testcase_04 AC 126 ms
100,484 KB
testcase_05 AC 111 ms
101,388 KB
testcase_06 AC 117 ms
101,720 KB
testcase_07 AC 119 ms
102,728 KB
testcase_08 AC 126 ms
99,924 KB
testcase_09 AC 103 ms
96,024 KB
testcase_10 AC 117 ms
103,744 KB
testcase_11 AC 125 ms
100,220 KB
testcase_12 AC 124 ms
107,884 KB
testcase_13 AC 102 ms
94,892 KB
testcase_14 AC 130 ms
102,336 KB
testcase_15 AC 102 ms
94,040 KB
testcase_16 AC 105 ms
97,948 KB
testcase_17 AC 132 ms
103,276 KB
testcase_18 AC 119 ms
101,052 KB
testcase_19 AC 127 ms
100,724 KB
testcase_20 AC 113 ms
102,720 KB
testcase_21 AC 99 ms
91,652 KB
testcase_22 AC 110 ms
100,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353

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

x = 0
for a in A + B:
    x ^= a
if x != 0:
    print(0)
    exit()
    
ans = pow(1 << 20, (n - 1) * (m - 1), MOD)
print(ans)
0