Sunday, November 20, 2011

UVa Problem: The Decoder (458)

//This C++ program is the solution to
//the problem put up on the UVa online judge
//website. The problem id is 458
//
//Question: The Decoder

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    char c;
    while((c=cin.get())!=EOF)
    {
                    if(c=='\n')
                    {
                               cout<<'\n';
                     }
                     else
                     {
                               cout<<(char)(((int)c)-7);
                     }         
    }
}

//Author of solution : Mayank Rajoria