| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 37146 | 王shizhao | 输出亲朋字符串 | C++ | Accepted | 0 MS | 240 KB | 259 | 2024-01-19 15:21:56 |
#include<iostream> #include<cstring> #include<cstdio> #include<cstdlib> using namespace std; char s[101]; char s1[101]; int main() { cin>>s; int n=strlen(s); s[n]=s[0]; for(int i=0;i<n;i++){ s1[i]=s[i]+s[i+1]; } cout<<s1; return 0; }