20111025

ACM 458 The Decoder

'1' - '*' = 7,
暗碼 - 7即為明碼。

/* ACM 458
 * mythnc
 * 2011/10/25 08:18:04   
 * run time: 0.02
 */
#include <stdio.h>
 
int main(void)
{
    int c;
 
    while ((c = getchar()) != EOF)
        if (c == '\n')
            putchar(c);
        else
            putchar(c - 7);
    return 0;
}

沒有留言: