1 solutions

  • 0
    @ 2026-10-24 11:22:27
    #include<bits/stdc++.h>
    using namespace std; 
    int main()
    {
    	string s1,s2,s3;
    	cin>>s1>>s2>>s3;
    	int t=s2[0]-s1[0];
    	for(int i=0;i<s3.size();i++)
    	{
    		int x=s3[i]-'A'-t;
    		while(x<0) x+=26;
    		if(x>=26) x-=26;
    		cout<<char('A'+x);	
    	} 
    	return 0;
    }
    
    
    • 1

    Information

    ID
    3062
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    61
    Accepted
    12
    Uploaded By