About Me

About Me : I have been working as a Software Engineer for various international companies for four years.Currently, I am working as a full stack Javascript developer in Petronas(Malaysia).

Skills

Skills • Javascript •Typescript •Python •C •Java •ReactJs • Redux • VueJs • NestJs • React Testing Library • Django• PostgreSQL • MySQL • NodeJs • Git • Docker • Jira • Visual Studio Code • Slack

মঙ্গলবার, ২৩ ডিসেম্বর, ২০১৪

11946 - Code Number

#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;
}

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন