Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
44228 | 惠子铭 | 输出亲朋字符串 | C++ | Accepted | 0 MS | 244 KB | 222 | 2024-03-29 15:39:27 |
#include <iostream> #include <string> using namespace std; int main() { string str; cin>>str; for (int i = 0; i < str.length(); i++) cout<<char(str[i]+str[(i+1)%str.length()]); return 0; }