0_0_6054622_24366\Main.java:1: illegal character: \35
#include<iostream>
^
0_0_6054622_24366\Main.java:2: illegal character: \35
#include<cstdio>
^
0_0_6054622_24366\Main.java:3: illegal character: \35
#include<cstring>
^
0_0_6054622_24366\Main.java:4: illegal character: \35
#include<vector>
^
0_0_6054622_24366\Main.java:5: illegal character: \35
#include<bitset>
^
0_0_6054622_24366\Main.java:7: illegal character: \35
#define re(i,n) for(int i=0;i<(n);i++)
^
0_0_6054622_24366\Main.java:7: class, interface, or enum expected
#define re(i,n) for(int i=0;i<(n);i++)
^
0_0_6054622_24366\Main.java:7: class, interface, or enum expected
#define re(i,n) for(int i=0;i<(n);i++)
^
0_0_6054622_24366\Main.java:8: illegal character: \35
#define re1(i,n) for(int i=1;i<=(n);i++)
^
0_0_6054622_24366\Main.java:8: class, interface, or enum expected
#define re1(i,n) for(int i=1;i<=(n);i++)
^
0_0_6054622_24366\Main.java:8: class, interface, or enum expected
#define re1(i,n) for(int i=1;i<=(n);i++)
^
0_0_6054622_24366\Main.java:9: illegal character: \35
#define re2(i,n) for(int i=0;i<=(n);i++)
^
0_0_6054622_24366\Main.java:9: class, interface, or enum expected
#define re2(i,n) for(int i=0;i<=(n);i++)
^
0_0_6054622_24366\Main.java:9: class, interface, or enum expected
#define re2(i,n) for(int i=0;i<=(n);i++)
^
0_0_6054622_24366\Main.java:10: illegal character: \35
#define clr(a,n) memset(a,n,sizeof(a))
^
0_0_6054622_24366\Main.java:12: class, interface, or enum expected
const int mod = 1000000003;
^
0_0_6054622_24366\Main.java:13: class, interface, or enum expected
LL dp[40][51][2];
^
0_0_6054622_24366\Main.java:14: class, interface, or enum expected
LL num[51][2];
^
0_0_6054622_24366\Main.java:15: class, interface, or enum expected
LL ans[40];
^
0_0_6054622_24366\Main.java:16: class, interface, or enum expected
int mx[51];
^
0_0_6054622_24366\Main.java:17: class, interface, or enum expected
int main(){
^
0_0_6054622_24366\Main.java:19: class, interface, or enum expected
while(~scanf("%d%d",&n,&k)&&n){
^
0_0_6054622_24366\Main.java:22: class, interface, or enum expected
clr(ans,0);
^
0_0_6054622_24366\Main.java:23: class, interface, or enum expected
re(i,31) {
^
0_0_6054622_24366\Main.java:25: class, interface, or enum expected
re(j,n) if(mx[j]&(1<<i)){
^
0_0_6054622_24366\Main.java:26: class, interface, or enum expected
int flag=0; LL ans=1;
^
0_0_6054622_24366\Main.java:27: class, interface, or enum expected
for(int p = j+1;p<n;p++) flag^= mx[p] & (1<<i)?1:0,
^
0_0_6054622_24366\Main.java:27: class, interface, or enum expected
for(int p = j+1;p<n;p++) flag^= mx[p] & (1<<i)?1:0,
^
0_0_6054622_24366\Main.java:27: class, interface, or enum expected
for(int p = j+1;p<n;p++) flag^= mx[p] & (1<<i)?1:0,
^
0_0_6054622_24366\Main.java:29: class, interface, or enum expected
num[0][flag] = ans,num[0][flag^1] = 0;
^
0_0_6054622_24366\Main.java:30: class, interface, or enum expected
re(p,j) if(mx[p]&(1<<i)){
^
0_0_6054622_24366\Main.java:32: class, interface, or enum expected
num[p+1][0] = num[p][0]*ans%mod;
^
0_0_6054622_24366\Main.java:33: class, interface, or enum expected
num[p+1][1] = num[p][1]*ans%mod;
^
0_0_6054622_24366\Main.java:34: class, interface, or enum expected
ans = mx[p] % (1<<i)+1;
^
0_0_6054622_24366\Main.java:35: class, interface, or enum expected
num[p+1][0] = (num[p+1][0]+num[p][1]*ans)%mod;
^
0_0_6054622_24366\Main.java:36: class, interface, or enum expected
num[p+1][1] = (num[p+1][1]+num[p][0]*ans)%mod;
^
0_0_6054622_24366\Main.java:37: class, interface, or enum expected
}
^
0_0_6054622_24366\Main.java:40: class, interface, or enum expected
num[p+1][0] = num[p][0]*ans%mod;
^
0_0_6054622_24366\Main.java:41: class, interface, or enum expected
num[p+1][1] = num[p][1]*ans%mod;
^
0_0_6054622_24366\Main.java:42: class, interface, or enum expected
}
^
0_0_6054622_24366\Main.java:44: class, interface, or enum expected
dp[i][j][1] = num[j][1];
^
0_0_6054622_24366\Main.java:45: class, interface, or enum expected
} else clr(dp[i][j],0);
^
0_0_6054622_24366\Main.java:46: class, interface, or enum expected
int flag = 0;
^
0_0_6054622_24366\Main.java:47: class, interface, or enum expected
re(j,n) ans[i]+= dp[i][j][x];
^
0_0_6054622_24366\Main.java:48: class, interface, or enum expected
re(j,n) flag ^= (mx[j]&(1<<i))?1:0; flag^=0;
^
0_0_6054622_24366\Main.java:48: class, interface, or enum expected
re(j,n) flag ^= (mx[j]&(1<<i))?1:0; flag^=0;
^
0_0_6054622_24366\Main.java:49: class, interface, or enum expected
if(flag == x) ans[i]+=i?ans[i-1]:1;
^
0_0_6054622_24366\Main.java:50: class, interface, or enum expected
ans[i]%=mod;
^
0_0_6054622_24366\Main.java:51: class, interface, or enum expected
}
^
0_0_6054622_24366\Main.java:53: class, interface, or enum expected
}
^
0_0_6054622_24366\Main.java:55: class, interface, or enum expected
}
|