#include <iostream>
#include <cstring>
#include <algorithm>
#include <map>
using namespace std;
int main(){
string a;
while(getline(cin,a)){
int fro=0,mid=0,rear=0;
int i=0;
for(;i<a.length();i++){
if(a[i]!='o')
break;
fro++;
}
i++;
for(;i<a.length();i++){
if(a[i]!='o')
break;
mid++;
}
i++;
for(;i<a.length();i++){
if(a[i]!='o')
break;
rear++;
}
// cout<<fro<<" "<<mid<<" "<<rear<<endl;
if(mid*fro==rear&&mid!=0)
cout<<"Accepted"<<endl;
else
cout<<"Wrong Answer"<<endl;
}
return 0;
}
KY151 ZOJ问题
最新推荐文章于 2021-03-23 19:23:22 发布