#include <iostream> #include <cstdio> using namespace std; int main() { int a; int t; cin >> a; //cin.ignore(); int ofs = a % 26; while ((t = getchar()) != '\n') { t = (t + ofs > 'z') ? (t + ofs - 26) : (t + ofs); putchar(t); } return 0; }
在自己电脑上运行好像没问题