• Source
    1. #include<stdio.h>
    2. #include<string.h>
    3. int main()
    4. {
    5. int i,t;
    6. char str[10000];
    7. scanf("%d",&t);
    8. getchar();
    9. while(t--)
    10. {
    11. while(gets(str)!='\0')
    12. {
    13. for(i=0; str[i]!='\0'; i++)
    14. {
    15. if(str[i]=='0')
    16. {
    17. printf("O");
    18. }
    19. else if(str[i]=='1')
    20. {
    21. printf("I");
    22. }
    23. else if(str[i]=='2')
    24. {
    25. printf("Z");
    26. }
    27. else if(str[i]=='3')
    28. {
    29. printf("E");
    30. }
    31. else if(str[i]=='4')
    32. {
    33. printf("A");
    34. }
    35. else if(str[i]=='5')
    36. {
    37. printf("S");
    38. }
    39. else if(str[i]=='6')
    40. {
    41. printf("G");
    42. }
    43. else if(str[i]=='7')
    44. {
    45. printf("T");
    46. }
    47. else if(str[i]=='8')
    48. {
    49. printf("B");
    50. }
    51. else if(str[i]=='9')
    52. {
    53. printf("P");
    54. }
    55. else
    56. {
    57. printf("%c",str[i]);
    58. }
    59. }
    60. printf("\n");
    61. }
    62. }
    63. return 0;
    64. }