#include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; // 输入偏移量 string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // 字母表 // 输出移位后的字母表 for (char c : alphabet) { // 计算每个字母的新位置 char shifted = (c - 'A' + n) % 26 + 'A'; // 计算移位后的字母 cout << shifted; } cout << endl; return 0; }