极限9行
2026-02-25 14:41:14
发布于:浙江
3阅读
0回复
0点赞
话不多说,上代码
#include<bits/stdc++.h>
using namespace std;
const char s[27]="ABCDEFGHIJKLMNOPQRSTUVWXYZ";//char数组常量以便输出
int main(){
int n;cin>>n;//输入
for(int i=0;i<26;i++){//26次输出,循环26次
cout <<s[(n+i)%26];//n+i:每个字符相对于A的偏移量
}
}
这里空空如也



有帮助,赞一个