#include<bits/stdc++.h>
using namespace std;
int main()
{
char a[10];
int ln,t,cnt=0;
cin>>t;
while(t--){
scanf("%s",a);
if(strlen(a)==5)
cout<<3<<"\n";
else if((a[0]=='o' && a[1]=='n')||
(a[0]=='o' && a[1]=='e')||
(a[1]=='n' && a[2]=='e')||
(a[0]=='o' && a[2]=='e')||
(a[0]=='o' && a[2]=='n'))
cout<<1<<"\n";
else
cout<<2<<"\n";
}
return 0;
}
using namespace std;
int main()
{
char a[10];
int ln,t,cnt=0;
cin>>t;
while(t--){
scanf("%s",a);
if(strlen(a)==5)
cout<<3<<"\n";
else if((a[0]=='o' && a[1]=='n')||
(a[0]=='o' && a[1]=='e')||
(a[1]=='n' && a[2]=='e')||
(a[0]=='o' && a[2]=='e')||
(a[0]=='o' && a[2]=='n'))
cout<<1<<"\n";
else
cout<<2<<"\n";
}
return 0;
}
No comments:
Post a Comment