UVaOJ 458 - The Decoder

来源:互联网 发布:c语言break用法if 编辑:程序博客网 时间:2024/06/06 15:48
#include <cstdio>#include <cstring>int main(){char buf[100];memset(buf, '\0', sizeof(buf));while (fgets(buf, sizeof(buf), stdin) != NULL){int len = strlen(buf);for (int i = 0; i < len - 1; ++i){buf[i] = buf[i] - 7;}printf("%s", buf);memset(buf, '\0', sizeof(buf));}return 0;}

0 0