結果

問題 No.1142 XOR と XOR
ユーザー iiljjiiljj
提出日時 2020-08-01 17:25:34
言語 cLay
(20240104-1)
結果
AC  
実行時間 227 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 2,610 ms
コンパイル使用メモリ 176,428 KB
実行使用メモリ 13,120 KB
最終ジャッジ日時 2024-04-25 16:37:51
合計ジャッジ時間 10,221 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 213 ms
7,620 KB
testcase_01 AC 213 ms
7,628 KB
testcase_02 AC 215 ms
7,628 KB
testcase_03 AC 227 ms
11,088 KB
testcase_04 AC 219 ms
9,044 KB
testcase_05 AC 217 ms
9,640 KB
testcase_06 AC 220 ms
9,936 KB
testcase_07 AC 221 ms
12,892 KB
testcase_08 AC 218 ms
12,048 KB
testcase_09 AC 217 ms
10,312 KB
testcase_10 AC 223 ms
11,212 KB
testcase_11 AC 222 ms
7,756 KB
testcase_12 AC 214 ms
7,632 KB
testcase_13 AC 208 ms
7,624 KB
testcase_14 AC 220 ms
10,880 KB
testcase_15 AC 223 ms
10,856 KB
testcase_16 AC 215 ms
7,820 KB
testcase_17 AC 216 ms
9,624 KB
testcase_18 AC 218 ms
8,140 KB
testcase_19 AC 224 ms
13,020 KB
testcase_20 AC 224 ms
8,804 KB
testcase_21 AC 211 ms
10,552 KB
testcase_22 AC 219 ms
10,204 KB
testcase_23 AC 226 ms
13,120 KB
testcase_24 AC 227 ms
12,108 KB
testcase_25 AC 211 ms
10,832 KB
testcase_26 AC 217 ms
11,088 KB
testcase_27 AC 220 ms
9,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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