Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
44171 | 王shizhao | 输出亲朋字符串 | C++ | Accepted | 0 MS | 244 KB | 259 | 2024-03-29 15:11: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; }