結果

問題 No.1142 XOR と XOR
ユーザー iiljjiiljj
提出日時 2020-08-01 17:18:18
言語 cLay
(20240104-1)
結果
AC  
実行時間 239 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 2,607 ms
コンパイル使用メモリ 177,148 KB
実行使用メモリ 20,224 KB
最終ジャッジ日時 2024-04-25 16:37:14
合計ジャッジ時間 10,474 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 233 ms
19,200 KB
testcase_01 AC 230 ms
19,072 KB
testcase_02 AC 235 ms
19,072 KB
testcase_03 AC 236 ms
20,224 KB
testcase_04 AC 232 ms
20,224 KB
testcase_05 AC 236 ms
20,224 KB
testcase_06 AC 239 ms
20,224 KB
testcase_07 AC 236 ms
19,968 KB
testcase_08 AC 234 ms
20,096 KB
testcase_09 AC 234 ms
20,224 KB
testcase_10 AC 233 ms
20,224 KB
testcase_11 AC 232 ms
19,200 KB
testcase_12 AC 228 ms
19,072 KB
testcase_13 AC 231 ms
19,200 KB
testcase_14 AC 238 ms
19,968 KB
testcase_15 AC 237 ms
20,096 KB
testcase_16 AC 234 ms
19,328 KB
testcase_17 AC 231 ms
19,840 KB
testcase_18 AC 235 ms
19,328 KB
testcase_19 AC 238 ms
20,224 KB
testcase_20 AC 234 ms
19,968 KB
testcase_21 AC 233 ms
19,584 KB
testcase_22 AC 231 ms
19,584 KB
testcase_23 AC 232 ms
20,224 KB
testcase_24 AC 230 ms
20,224 KB
testcase_25 AC 226 ms
19,840 KB
testcase_26 AC 235 ms
20,096 KB
testcase_27 AC 232 ms
20,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{ll n,m,k,a[1d6],b[1d6],M=1d4,X=0,Y=0;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