2 solutions

  • 2
    @ 2025-11-16 18:41:32
    #include<bits/stdc++.h>
    using namespace std;
    int main() 
    { 
      char ch;cin>>ch;
      if(ch=='Z')
      {
        ch='B';
      } 
      else if(ch=='Y')
      {
        ch='A'; 
      }
      else
      { 
        ch=ch+2;
      } cout<<ch;
      return 0; 
    }
    
    • -1
      @ 2025-9-14 14:49:14

      #include<bits/stdc++.h> using namespace std; int main() { char ch; cin>>ch; if(ch=='Z') { ch='B'; } else if(ch=='Y') { ch='A'; } else { ch=ch+2; } cout<<ch; return 0; }

      • 1

      Information

      ID
      17
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      2
      Tags
      (None)
      # Submissions
      306
      Accepted
      98
      Uploaded By