BI

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
289 B
9
Indexable
Never
#include <bits/stdc++.h>

using namespace std;

int main()
{
    string s;
    int k;
    cin >> s >> k;
    for(int i = 0; i < s.size(); i++){
        if(s[i] - *** < 'A')
            cout<<(char)('***' - ('A' - s[i] + k) + ***);
        else
            cout<<(char)(s[i] - ***);
    }
}