https://i2.wp.com/eblogarithm.com/wp-content/uploads/2017/07/Codeforces-Round-424-Div-2-rated-based-on-VK-Cup-Finals-problem-B-Keyboard-Layouts-Solution-In-CC1.png?fit=640%2C360

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;
}

(Visited 25 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: