Run ID:159656

提交时间:2026-09-06 09:55:34

#include<bits/stdc++.h> using namespace std; int main() { string s,t; getline(cin,s); getline(cin,t); int n=s.length(); for(int i=0;i<n;i++){ if(s[i]>='A'&&s[i]<='Z'){ s[i]=t[s[i]-'A']-32; } if(s[i]>='a'&&s[i]<='z'){ s[i]=t[s[i]-'a']; } } cout<<s; return 0; }