为什么有读入多读一个空格导致 bitset 多一位这种巨大错误
能得60pts……
即
scanf("%d",&x);
cover(1,0,q,pretim[x],i-1,e[x]);
int cnt = 0;
tem = 0;
char ch;
while((ch=getchar()) != '\r'&&ch !='\n')temp[++cnt] = ch-'0';
应为
scanf("%d ",&x);
cover(1,0,q,pretim[x],i-1,e[x]);
int cnt = 0;
tem = 0;
char ch;
while((ch=getchar()) != '\r'&&ch !='\n')temp[++cnt] = ch-'0';
顺便告诫后人 可能没人再犯这种错误……