行云流水's Bolg

UVaOJ 458 The Decoder

题目链接

UVaOJ 458 The Decoder

分析

解码方法:

decoded character的ASCII码 = coded characterASCII码 - 7

题解

#include <stdio.h>

int main(){ 
   
    char c;
    while( (c = getchar()) != EOF ){  
        if( c == '\n' )
            printf("\n");
        else
            printf("%c",c-7);
    }
    return 0;
}
blog comments powered by Disqus