样例全对wa了
查看原帖
样例全对wa了
1092527
zhuqiran12311楼主2024/10/29 17:27
#include<bits/stdc++.h>
#define ll long long int
using namespace std;
const ll maxn=2e6+10;
int n;
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>n;
	char a='B',c='A';
	for(int i=1;i<=n;i++)
	{
		for(int j=1;j<=n;j++)
		{
			cout<<c;
			c++;
		}
		c=a,a++;
		cout<<endl;
	}
	return 0;
}

我的想法挺奇怪

2024/10/29 17:27
加载中...