|
|
back to boardWA at test 4 Posted by Wyand 26 Apr 2010 00:56 string s,t; int main(){ cin>>s; bgn: bool b=0; s=s+'_'; Repi(s.sz-1){ if(s[i]==s[i+1]){i++;b=1;} else t=t+s[i]; } s=t;t=""; if(b==1)goto bgn; cout<<s<<endl; system("pause"); return 0; } Any idea where's the problem? Re: WA at test 4 Posted by Ilya 31 Aug 2011 17:01 Try "aaa". Answer is "". |
|
|