| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 37115 | chenyifei | 输出亲朋字符串 | C++ | Accepted | 0 MS | 240 KB | 263 | 2024-01-19 15:11:53 |
#include<iostream> #include<cstring> using namespace std; int main() { char a[110]; char b[110]; int len=strlen(a); cin.getline(a,110); a[len]=a[0]; for(int i=0;i<len;i++){ b[i]=a[i]+a[i+1]; } cout<<b; return 0; }