提交时间:2020-12-31 16:59:24
运行 ID: 12309
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,k; cin>>n; for(int i=1;i<=n;i++){ cin>>m; while(m!=0){ k=m%10; if(k==0) cout<<"O"; if(k==1) cout<<"O"; if(k==2) cout<<"T"; if(k==3) cout<<"T"; if(k==4) cout<<"F"; if(k==5) cout<<"F"; if(k==6) cout<<"S"; if(k==7) cout<<"S"; if(k==8) cout<<"E"; if(k==9) cout<<"N"; m/=10; } cout<<endl; } return 0; }