TLE求助
查看原帖
TLE求助
1275655
zzh0915楼主2024/4/20 09:56
#include <bits/stdc++.h>
using namespace std;
int main()
{
 	int n;
 	cin>>n;
 	for(int i='A';i<='A'+n-1;i++)
 	{
 		for(int j=i;j<=i+n-1;j++)
 		{
 			while(j>'Z')
 				j=j-'Z'+'A';
 			cout<<char(j);
		 }
		 cout<<endl;
	 }
    return 0;
}
2024/4/20 09:56
加载中...