提交时间:2020-08-23 19:13:59
运行 ID: 6055
#include<bits/stdc++.h> using namespace std; int b=0; void shushu(char a[11]){ for(int i=b;i>0;i--){ if(a[i]=='0'||a[i]=='1') cout<<"O"; if(a[i]=='2'||a[i]=='3') cout<<"T"; if(a[i]=='4'||a[i]=='5') cout<<"F"; if(a[i]=='6'||a[i]=='7') cout<<"S"; if(a[i]=='8') cout<<"E"; if(a[i]=='9') cout<<"N"; } } int main(){ int n; cin>>n; char a[11]={''}; for(int i=0;i<n;i++){ while(getchar()!=/n){ cin>>a; b++; } shushu(a); cout<<endl; } return 0; }