結果
問題 |
No.1142 XOR と XOR
|
ユーザー |
![]() |
提出日時 | 2020-08-01 17:46:09 |
言語 | cLay (20241019-1) |
結果 |
RE
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 2,226 ms |
コンパイル使用メモリ | 173,628 KB |
実行使用メモリ | 7,424 KB |
最終ジャッジ日時 | 2024-07-05 13:48:22 |
合計ジャッジ時間 | 7,841 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 25 |
コンパイルメッセージ
main.cpp: In function ‘long long int s(long long int*, Mint*)’: main.cpp:345:1: warning: no return statement in function returning non-void [-Wreturn-type] 345 | } | ^
ソースコード
ll n,m,k,a[1d6],b[1d6],M=1024,X;ll s(ll*e,Mint*A){X=0;Mint C[M];C[0]=1;rep(i,n)C[X^=e[i]]+=1;rep(i,M){rep(j,i){A[i^j]+=C[i]*C[j];}A[0]+=C[i]*(C[i]-1)/2;}}{rd(n,m,k,a(n),b(m));Mint A[M],B[M],R;s(a,A);s(b,B);rep(i,M)R+=A[i]*B[k^i];wt(R);}