結果
| 問題 | No.1870 Xor Matrix |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-12 14:30:52 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 73 ms / 2,000 ms |
| + 484µs | |
| コード長 | 260 bytes |
| 記録 | |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 64,328 KB |
| 実行使用メモリ | 86,212 KB |
| 最終ジャッジ日時 | 2026-11-27 22:42:23 |
| 合計ジャッジ時間 | 3,371 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
n,m = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
ca,cb = 0,0
for a in A:
ca ^= a
for b in B:
cb ^= b
if ca != cb:
print(0)
exit()
mod = 998244353
ans = pow(1<<20,(n-1)*(m-1),mod)
print(ans)