Codeforces Round #424 (Div. 2, rated, based on VK Cup Finals), problem: (B) Keyboard Layouts Solution In C/C++

#include <bits/stdc++.h>
using namespace std;
string s1, s2, t;
int main() {
cin >> s1 >> s2 >> t;
for(char c : t) putchar(c < 58 ? c : s2[s1.find(c < 91 ? c + 32 : c)] – (c < 91 ? 32 : 0));
return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *