提交时间:2020-12-26 17:18:28
运行 ID: 12051
#include<bits/stdc++.h> using namespace std; int main(){ int n; char a[11]; cin>>n; while(n--){ cin>>a; for(int i=11;i>=0;i--){ if(a[i]=='1') cout<<"O"; if(a[i]=='2') cout<<"T"; if(a[i]=='3') cout<<"T"; if(a[i]=='4') cout<<"F"; if(a[i]=='5') cout<<"F"; if(a[i]=='6') cout<<"S"; if(a[i]=='7') cout<<"S"; if(a[i]=='8') cout<<"E"; if(a[i]=='9') cout<<"N"; if(a[i]=='0') cout<<"O"; } cout<<endl; } return 0; }