while(true){ temp = getchar(); if(temp == '\n') break; s[++len] = temp; } 这样读入会全部RE;
scanf("%s", s + 1); len = strlen(s + 1); 这样读入就全AC了
求大佬说下这是为什么