Sunday, July 17, 2016

UVA 11946 Solution

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

int main()
{
    int tc;
    char c;
    scanf("%d\n",tc);
    while((c=getchar())!=EOF)
    {
        if(c=='1') printf("I");
        else if(c=='2') printf("Z");
        else if(c=='3') printf("E");
        else if(c=='4') printf("A");
        else if(c=='5') printf("S");
        else if(c=='6') printf("G");
        else if(c=='7') printf("T");
        else if(c=='8') printf("B");
        else if(c=='9') printf("P");
        else if(c=='0') printf("O");
        else printf("%c",c);
    }
    return 0;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,