#include <iostream>
#include <string>
using namespace std;

string transform(string s) {
    string result = "";
    for (int i = 0; i < s.length() - 1; i++) {
        result += (s[i] + s[i+1]) % 64 + 64;
    }
    result += (s[s.length()-1] + s[0]) % 64 + 64;
    return result;
}

int main() {
    string s;
    cin >> s;
    cout << transform(s) << endl;
    return 0;
}

原文地址: https://www.cveoy.top/t/topic/p6VM 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录