結果
問題 | No.1870 Xor Matrix |
ユーザー |
👑 |
提出日時 | 2022-03-11 21:37:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 104 ms / 2,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 388 ms |
コンパイル使用メモリ | 82,140 KB |
実行使用メモリ | 108,928 KB |
最終ジャッジ日時 | 2024-09-16 01:45:09 |
合計ジャッジ時間 | 3,545 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
MOD = 998244353n, m = map(int, input().split())A = list(map(int, input().split()))B = list(map(int, input().split()))x = 0for a in A + B:x ^= aif x != 0:print(0)exit()ans = pow(1 << 20, (n - 1) * (m - 1), MOD)print(ans)