Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
44186 | yejiaxiangBMT | 输出亲朋字符串 | C++ | 通过 | 0 MS | 240 KB | 231 | 2024-03-29 15:15:58 |
#include <bits/stdc++.h> using namespace std; int main() { char s[100]; int i,len=0; gets(s); len=strlen(s); for(i=0; i<len; i++) putchar(s[i]+s[(i+1)%len]); puts(""); return 0; }