結果

問題 No.1142 XOR と XOR
ユーザー iiljjiiljj
提出日時 2020-08-01 16:30:41
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 2,312 ms
コンパイル使用メモリ 173,484 KB
実行使用メモリ 11,616 KB
最終ジャッジ日時 2023-09-19 00:54:11
合計ジャッジ時間 12,513 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,676 KB
testcase_01 WA -
testcase_02 AC 2 ms
5,524 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 2 ms
5,420 KB
testcase_12 AC 2 ms
5,432 KB
testcase_13 AC 2 ms
5,412 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
権限があれば一括ダウンロードができます

ソースコード

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]+=C[X]+=1;}rep(i,m){Y^=b[i];rep(j,M)B[j^Y]+=D[j];B[Y]+=D[Y]+=1;}rep(i,M)R+=A[i]*B[k^i];wt(R);}
0