UVA 11220 - Decoding the message.

Problem PDF

Solution:

#include
#include
#include
#include
#include
#include
#include
#include
#include 
#include 
#include
#include
#define ll long long
#define sc scanf
#define pf printf
#define Pi 2*acos(0.0)
using namespace std;
int main()
{
    char s[40000],b[40000];
    int t,no=0;
    sc("%d",&t);
    getchar();
    int i=0;
    while(t--)
    {
        for(i=0;;i++)
        {
         gets(s);

        }

        int j=0;
        b[j++]=s[j];

        for(int i=1;i
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11220/11220.cpp