这题比较坑!!!!

当整数读入的时候别忘了末尾零!!!!要输出!!!!

总是wrong answer所以改成当字符串读入,还是wrong answer ,我也是无语了。

原来是0的首字母是O不是Z啊!!!!坑!!!!!

#include <iostream>
#include <cstring>
using namespace std;

char a[10] = {'O','O','T','T','F','F','S','S','E','N'};

int main()
{
   int n;
   char b[15];
   memset(b,' ',sizeof(b));
   cin >> n;
   while(n--)
   {
                 cin >> b;
                  for(int i= strlen(b)-1; i >= 0 ; i--)
                 {
                         cout << a[b[i]-'0'];
                 }
                 cout << endl;
    }
    return 0;
}