Friday, July 25, 2014

UVa - 458 - The Decoder

#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;

int main(){
    char sample[1000];
    while(scanf("%s", &sample) == 1){
        for(int i = 0; sample[i]; i++){
            printf("%c", sample[i] - 7);
        }
        cout << endl;
    }
    return 0;
}

No comments:

Post a Comment