結果

問題 No.1870 Xor Matrix
ユーザー tailstails
提出日時 2022-03-11 21:43:51
言語 cLay
(20240104-1)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 2,611 ms
コンパイル使用メモリ 173,012 KB
実行使用メモリ 6,616 KB
最終ジャッジ日時 2023-10-14 06:44:07
合計ジャッジ時間 4,372 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 5 ms
5,616 KB
testcase_04 AC 7 ms
6,436 KB
testcase_05 AC 5 ms
5,848 KB
testcase_06 AC 6 ms
5,860 KB
testcase_07 AC 7 ms
6,108 KB
testcase_08 AC 7 ms
6,196 KB
testcase_09 AC 5 ms
5,328 KB
testcase_10 AC 6 ms
5,904 KB
testcase_11 AC 7 ms
6,100 KB
testcase_12 AC 7 ms
6,124 KB
testcase_13 AC 5 ms
5,204 KB
testcase_14 AC 7 ms
6,356 KB
testcase_15 AC 5 ms
5,156 KB
testcase_16 AC 6 ms
5,496 KB
testcase_17 AC 8 ms
6,616 KB
testcase_18 AC 6 ms
5,952 KB
testcase_19 AC 7 ms
6,436 KB
testcase_20 AC 6 ms
5,684 KB
testcase_21 AC 5 ms
4,832 KB
testcase_22 AC 5 ms
5,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@n,@m,@a[n],@b[m];
Mint r;
//if(XOR(a(n),b(m))){
ll z=0;
rep(i,n)z^=a[i];
rep(i,m)z^=b[i];
if(!z)r=Mint(2**20)**((n-1)*(m-1));
wt(r);
0