結果

問題 No.1870 Xor Matrix
ユーザー t98slidert98slider
提出日時 2022-03-12 11:07:43
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 2,550 ms
コンパイル使用メモリ 137,496 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-14 23:12:42
合計ジャッジ時間 4,883 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,352 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 45 ms
4,348 KB
testcase_04 AC 72 ms
4,352 KB
testcase_05 AC 45 ms
4,348 KB
testcase_06 AC 53 ms
4,348 KB
testcase_07 AC 62 ms
4,352 KB
testcase_08 AC 64 ms
4,348 KB
testcase_09 AC 39 ms
4,352 KB
testcase_10 AC 54 ms
4,352 KB
testcase_11 AC 60 ms
4,348 KB
testcase_12 AC 63 ms
4,348 KB
testcase_13 AC 37 ms
4,352 KB
testcase_14 AC 71 ms
4,348 KB
testcase_15 AC 35 ms
4,352 KB
testcase_16 AC 42 ms
4,348 KB
testcase_17 AC 77 ms
4,348 KB
testcase_18 AC 55 ms
4,352 KB
testcase_19 AC 66 ms
4,348 KB
testcase_20 AC 48 ms
4,352 KB
testcase_21 AC 29 ms
4,352 KB
testcase_22 AC 45 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<atcoder/all>
int n,m,v,x,i;

int main(){
  auto&q=std::cin>>n>>m;
  while(i++<n+m)q>>v,x^=v;
  std::cout<<(x?0:atcoder::modint998244353(2).pow(20ll*(n-1)*(m-1)).val());
}
0