2 solutions

  • 1
    @ 2025-10-31 15:41:18
    #include<iostream>
    #include<string>
    using namespace std;
    int main(){
        string str;
        cin>>str;
        for(int i = 0;i<=4;i++){
            str[i] = str[i] + 4;
        }
        cout<<str;
        return 0;
    }
    
    • -1
      @ 2026-1-7 13:40:08

      #include <bits/stdc++.h> using namespace std;

      int main() { char c1, c2, c3, c4, c5; cin >> c1 >> c2 >> c3 >> c4 >> c5; c1 += 4; c2 += 4; c3 += 4; c4 += 4; c5 += 4; cout << c1 << c2 << c3 << c4 << c5 ; return 0; }

      • 1

      Information

      ID
      515
      Time
      1000ms
      Memory
      64MiB
      Difficulty
      2
      Tags
      # Submissions
      142
      Accepted
      92
      Uploaded By