字符串操作
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
string s = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ";
cout << s.substr(n % 26, 26);
return 0;
}
字符串操作
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
string s = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ";
cout << s.substr(n % 26, 26);
return 0;
}