#include<bits/stdc++.h>
using namespace std;
char a[100000];
int main()
{
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
scanf("%[^EOF]",a);
int i=0,q=0,w=0,t=0;
while(a[i]!='\0')
{
if (a[i]=='\n') {
i++;continue;
}
t++;
if (a[i]=='W') q++;
else w++;
if ((q>=11||w>=11)&&abs(w-q)>=2) cout << q << ":" << w << endl ,q=0,w=0,t=0;
i++;
}
cout << q << ":" << w << endl << endl;
q=0,w=0,t=0,i=0;
while(a[i]!='\0')
{
if (a[i]=='\n') {
i++;continue;
}
t++;
if (a[i]=='W') q++;
else w++;
if ((q>=21||w>=21)&&abs(w-q)>=2) cout << q << ":" << w << endl ,q=0,w=0,t=0;
i++;
}
cout << q << ":" << w << endl;
return 0;
}
![测试点一样]()
![只有20分!!]()