#include <iostream>
#include<cstdio>
#include<cstring>
#define READ freopen("in.txt","r",stdin);
using namespace std;
int main()
{
//READ
char ss[100];
int T,cas;
scanf("%d",&T);
getchar();
for(cas=1; cas<=T; cas++)
{
while(gets(ss))
{
if(ss[0]=='\0') break;
int len=strlen(ss);
for(int i=0; i<len; i++)
{
if(ss[i]=='0') cout<<'O';
else if(ss[i]=='1') cout<<'I';
else if(ss[i]=='2') cout<<'Z';
else if(ss[i]=='3') cout<<'E';
else if(ss[i]=='4') cout<<'A';
else if(ss[i]=='5') cout<<'S';
else if(ss[i]=='6') cout<<'G';
else if(ss[i]=='7') cout<<'T';
else if(ss[i]=='8') cout<<'B';
else if(ss[i]=='9') cout<<'P';
else cout<<ss[i];
}
cout<<endl;
}
if(cas<T) printf("\n");
}
return 0;
}
#include<cstdio>
#include<cstring>
#define READ freopen("in.txt","r",stdin);
using namespace std;
int main()
{
//READ
char ss[100];
int T,cas;
scanf("%d",&T);
getchar();
for(cas=1; cas<=T; cas++)
{
while(gets(ss))
{
if(ss[0]=='\0') break;
int len=strlen(ss);
for(int i=0; i<len; i++)
{
if(ss[i]=='0') cout<<'O';
else if(ss[i]=='1') cout<<'I';
else if(ss[i]=='2') cout<<'Z';
else if(ss[i]=='3') cout<<'E';
else if(ss[i]=='4') cout<<'A';
else if(ss[i]=='5') cout<<'S';
else if(ss[i]=='6') cout<<'G';
else if(ss[i]=='7') cout<<'T';
else if(ss[i]=='8') cout<<'B';
else if(ss[i]=='9') cout<<'P';
else cout<<ss[i];
}
cout<<endl;
}
if(cas<T) printf("\n");
}
return 0;
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন