結果
問題 |
No.1870 Xor Matrix
|
ユーザー |
![]() |
提出日時 | 2022-03-12 14:09:01 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 5,068 ms |
コンパイル使用メモリ | 306,536 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-16 20:44:07 |
合計ジャッジ時間 | 7,492 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 10 WA * 10 |
ソースコード
#include<atcoder/all> #include<bits/stdc++.h> using namespace std; int N,M,A,x; int main(){ cin>>N>>M; for(int i=0;i<N;++i){ cin>>x; A^=x; } for(int i=0;i<M;++i){ cin>>x; A^=x; } if(A){ puts("0"); return 0; } cout<<atcoder::modint998244353(2).pow((N-1LL)*(M-1)).val()<<'\n'; }