結果

問題 No.1142 XOR と XOR
ユーザー iiljjiiljj
提出日時 2020-08-01 16:33:45
言語 cLay
(20240104-1)
結果
AC  
実行時間 374 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 2,563 ms
コンパイル使用メモリ 175,764 KB
実行使用メモリ 20,096 KB
最終ジャッジ日時 2024-04-25 16:36:58
合計ジャッジ時間 9,214 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
18,944 KB
testcase_01 AC 12 ms
19,072 KB
testcase_02 AC 12 ms
18,944 KB
testcase_03 AC 352 ms
19,968 KB
testcase_04 AC 289 ms
20,096 KB
testcase_05 AC 242 ms
20,096 KB
testcase_06 AC 300 ms
20,096 KB
testcase_07 AC 365 ms
19,712 KB
testcase_08 AC 374 ms
19,968 KB
testcase_09 AC 367 ms
19,968 KB
testcase_10 AC 365 ms
19,968 KB
testcase_11 AC 12 ms
19,072 KB
testcase_12 AC 12 ms
18,944 KB
testcase_13 AC 12 ms
18,944 KB
testcase_14 AC 209 ms
19,840 KB
testcase_15 AC 202 ms
19,712 KB
testcase_16 AC 27 ms
19,200 KB
testcase_17 AC 280 ms
19,584 KB
testcase_18 AC 71 ms
19,072 KB
testcase_19 AC 300 ms
20,096 KB
testcase_20 AC 194 ms
19,712 KB
testcase_21 AC 126 ms
19,456 KB
testcase_22 AC 73 ms
19,200 KB
testcase_23 AC 278 ms
19,840 KB
testcase_24 AC 312 ms
19,968 KB
testcase_25 AC 178 ms
19,712 KB
testcase_26 AC 295 ms
20,096 KB
testcase_27 AC 237 ms
19,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{ll n,m,k,a[1d6],b[1d6],M=1024,X=0,Y=0;rd(n,m,k,a(n),b(m));Mint C[M],D[M],A[M],B[M],R;rep(i,n){X^=a[i];rep(j,M)A[j^X]+=C[j];A[X]+=1;C[X]+=1;}rep(i,m){Y^=b[i];rep(j,M)B[j^Y]+=D[j];B[Y]+=1;D[Y]+=1;}rep(i,M)R+=A[i]*B[k^i];wt(R);}
0