UVaOJ458 - The Decoder

看出来了,ascll -7

WA:

/*458 - The Decoder*/
# include <stdio.h>
int main()
{
char ch;
while ((ch=getchar()) != EOF)
if (ch != '\n') putchar((ch+121)%128);
else putchar('\n');
return 0;
}

AC:

/*458 - The Decoder*/
# include <stdio.h>
int main()
{
char ch;
while ((ch=getchar()) != EOF)
if (ch != '\n') putchar(ch-7);
else putchar('\n');
return 0;
}




你可能感兴趣的:(decode)