提交时间:2020-08-23 18:59:39
运行 ID: 6025
#include<iostream> using namespace std; int bian(int n){ while(n>0){ int n1=n%10; switch (n1){ case 0:cout<<"O";break; case 1:cout<<"O";break; case 2:cout<<"T";break; case 3:cout<<"T";break; case 4:cout<<"F";break; case 5:cout<<"F";break; case 6:cout<<"S";break; case 7:cout<<"S";break; case 8:cout<<"E";break; case 9:cout<<"N";break; } n/=10; } cout<<endl; return -1; } int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ int p,q=0; cin>>p; while(p>0){ q*=10; q=q+p%10; p/=10; } bian(q); } return 0; }