結果

問題 No.1870 Xor Matrix
コンテスト
ユーザー minimum
提出日時 2022-03-11 21:33:46
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 101 ms / 2,000 ms
+ 692µs
コード長 266 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 233 ms
コンパイル使用メモリ 95,472 KB
実行使用メモリ 125,824 KB
最終ジャッジ日時 2026-08-28 09:34:17
合計ジャッジ時間 4,265 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

MOD = 998244353
N, M = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))

ax = 0
for i in A:
    ax ^= i
bx = 0
for i in B:
    bx ^= i

if ax != bx:
    print(0)
else:
    print(pow(2, 20 * ((N - 1) * (M - 1)), MOD))
0