Run ID:71765

提交时间:2024-04-27 16:23:44

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