提交时间:2020-08-23 19:13:16

运行 ID: 6053

#include<bits/stdc++.h> using namespace std; int main(){ int t; int b,num; cin>>t; for(int i=1;i<=t;i++){ cin>>b; while(b){ num=b%10; if(num==0) cout<<"O"; else if(num==1) cout<<"O"; else if(num==2) cout<<"T"; else if(num==3) cout<<"T"; else if(num==4) cout<<"F"; else if(num==5) cout<<"F"; else if(num==6) cout<<"S"; else if(num==7) cout<<"S"; else if(num==8) cout<<"E"; else if(num==9) cout<<"N"; b/=10; } cout<<endl; } return 0; }