458 - The Decoder || UVa 458 Solution in C C++ CPP || The Decoder UVa Solution

Problem name: 458 - The Decoder
Judge: UVa Online Judge
Problem link: 458 - The Decoder
Solution on GitHub: 458 - The Decoder



UVa Online Judge 458 - The Decoder Solution in C C++ CPP


#include <iostream>
#include <string>

using namespace std;

int main()
{
    string s;
    while (cin >> s)
    {
        string decoded;
        int len = s.length();
        for (int i = 0; i < len; i++)
        {
            decoded += s[i] - 7;
        }
        cout << decoded << endl;
    }

    return 0;
}








Tags: 458 - The Decoder, UVa 458 Solution in C  C++ CPP Java Python Javascript C# PHP, The Decoder UVa Solution solution in c c++ cpp java python, uva, uva online judge, online judge, problem solution, online judge solution, uva solutions


Next Post Previous Post
No Comment
Add Comment
comment url