为什么一个样例都过不去,至少下载第一个测试点没发现哪里不一样
#include<iostream>
using namespace std;
char str[70000];
int main(){
for(int i=0;;i++){
cin>>str[i];
if(str[i]=='E') break;
}
int tag=0,l,w;
for(int i=0;;i++){
tag=tag%11;
if((tag==0&&i!=0)||str[i]=='E'){
cout<<w<<":"<<l<<endl;
l=0; w=0;
if(str[i]=='E')
break;
}
if(str[i]=='W') w++;
if(str[i]=='L') l++;
tag++;
}
cout<<endl;
tag=0;
for(int i=0;;i++){
tag=tag%21;
if((tag==0&&i!=0)||str[i]=='E'){
if(str[i]=='E'){
cout<<w<<":"<<l;
break;
}
cout<<w<<":"<<l<<endl;
l=0; w=0;
}
if(str[i]=='W') w++;
if(str[i]=='L') l++;
tag++;
}
return 0;
}