Run ID:159653
提交时间:2026-09-06 09:51:42
#include<bits/stdc++.h> using namespace std; int main() { string s; getline(cin,s); int n=s.length(),t[26]={0}; cin>>t; 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; }