#39708: c++答


yp11251144@yphs.tp.edu.tw (911-38曾湛)

學校 : 臺北市私立延平高級中學
編號 : 237373
來源 : [203.72.178.3]
最後登入時間 :
2024-12-11 09:26:41

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
int n;
cin>>n;
while(n--){
string s;
cin>>s;
if(s.size()==5){cout<<3<<endl; continue;
}
int wrong=0;
if(s[0]!='o') wrong++;
if(s[1]!='n') wrong++;
if(s[2]!='e') wrong++;
if(wrong<=1) cout<<1<<endl;
else cout<<2<<endl;
}
 
}