提交时间:2020-08-23 19:05:51
运行 ID: 6038
#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=0; cin>>p; bian(p); } return 0; }