結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 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,352 KB
testcase_06 AC 53 ms
4,352 KB
testcase_07 AC 63 ms
4,352 KB
testcase_08 AC 64 ms
4,348 KB
testcase_09 AC 39 ms
4,352 KB
testcase_10 AC 55 ms
4,352 KB
testcase_11 AC 60 ms
4,348 KB
testcase_12 AC 63 ms
4,352 KB
testcase_13 AC 37 ms
4,348 KB
testcase_14 AC 72 ms
4,352 KB
testcase_15 AC 35 ms
4,348 KB
testcase_16 AC 42 ms
4,356 KB
testcase_17 AC 77 ms
4,352 KB
testcase_18 AC 56 ms
4,352 KB
testcase_19 AC 66 ms
4,352 KB
testcase_20 AC 48 ms
4,348 KB
testcase_21 AC 29 ms
4,352 KB
testcase_22 AC 44 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:3:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type]
    3 | 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());}
      | ^~~~

ソースコード

diff #

#include<atcoder/all>
int n,m,v,x,i;
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