2 solutions

  • 1
    @ 2025-8-1 11:57:42
    
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	char a;
    	cin>>a;
    	if(a=='a')
    	{
    		cout<<"z";
    	}
    	else
    	{
    		int b=a;
    		int c=b-1;
    		char d=c;
    		cout<<d;
    	}
        return 0;
    }

    Information

    ID
    16
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    279
    Accepted
    82
    Uploaded By