UVA 11946 Code Number Solution

Solution in c++:
     ///**********ALLAH IS ALMIGHTY************///
     ///AH Tonmoy
    ///Department of CSE,23rd batch
    ///Islamic University,Bangladesh

#include <cstdio>
#include <cstring>
#include <iostream>
#include<stdio.h>
using namespace std;
int main()
{
    int t,i,j,len;
    char message[100],c;
    while(scanf("%d",&t)==1)
    {
        getchar();
        for(i=1; i<=t; i++)
        {
            while(gets(message))
            {
                len=strlen(message);
                if (len==0)
                    break ;
                for(j=0; message[j]!='\0'; j++)
                {
                    if(message[j]=='0')
                        printf("O");
                    else if(message[j]=='1')
                        printf("I");
                    else if(message[j]=='2')
                        printf("Z");
                    else if(message[j]=='3')
                        printf("E");
                    else if(message[j]=='4')
                        printf("A");
                    else if(message[j]=='5')
                        printf("S");
                    else if(message[j]=='6')
                        printf("G");
                    else if(message[j]=='7')
                        printf("T");
                    else if(message[j]=='8')
                        printf("B");
                    else if(message[j]=='9')
                        printf("P");
                    else
                        printf("%c",message[j]);
                }
                printf("\n");
            }
            if(i!=t)
                printf("\n");
        }
    }
}

1 comment:

  1. Listen...

    What I'm going to tell you might sound a little weird, maybe even a little "strange"

    WHAT if you could simply push "PLAY" and LISTEN to a short, "magical tone"...

    And INSTANTLY attract MORE MONEY into your life??

    And I'm really talking about hundreds... even thousands of dollars!!

    Do you think it's too EASY?? Think it couldn't possibly be REAL?!?

    Well then, I've got news for you...

    Many times the most magical blessings in life are also the SIMPLEST!!

    In fact, I'm going to PROVE it to you by letting you PLAY a real-life "miracle money-magnet tone" I've produced...

    And TOTALLY FOR FREE

    YOU simply click "PLAY" and the money will start coming into your life.. starting pretty much right away..

    CLICK here now to experience the magical "Miracle Abundance Tone" as my gift to you!!

    ReplyDelete

Most View Post

Recent post

Codeforces Round 925 (Div. 3) 1931D. Divisible Pairs Solution

    Problem Link  :   https://codeforces.com/contest/1931/problem/D S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. ...

Powered by Blogger.