| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 44108 | chenyanda | 输出亲朋字符串 | C++ | Accepted | 0 MS | 252 KB | 204 | 2024-03-29 14:52:31 |
#include<iostream> #include<cstring> using namespace std; int main() { char s[102]; cin>>s; s[strlen(s)]=s[0]; for(int i=0;i<strlen(s)-1;i++){ s[i]=s[i]+s[i+1]; cout<<char(s[i]); } }