1 solutions

  • 0
    @ 2025-9-12 13:41:23
    #include <iostream>
    #include <string>
    using namespace std;
    int main() {
        int n;
        string s;
        cin >> n;
        cin >> s;
        for (int i = 0; i < s.length(); i++) {
            s[i] = (s[i] - 'a' + n) % 26 + 'a';
        }
        cout << s << endl;
        return 0;
    }
        
    
    • 1

    Information

    ID
    880
    Time
    1000ms
    Memory
    512MiB
    Difficulty
    1
    Tags
    # Submissions
    8
    Accepted
    3
    Uploaded By