5 solutions

  • 0
    @ 2026-6-6 14:45:22
    #include<bits/stdc++.h>
    using namespace std;
    const int N=110;
    char a[N];
    int main(){
        cin.getline(a,110);
        for(int i=0;i<strlen(a)-1;i++){
            cout<<char(a[i]+a[i+1]);
        }
        cout<<char(a[0]+a[strlen(a)-1]);
        return 0;
    }
    

    Information

    ID
    917
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    86
    Accepted
    49
    Uploaded By