Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
34508 qwertyuiop 【入门】画正方形 C++ 通过 0 MS 244 KB 262 2024-01-07 14:50:21

Tests(10/10):


#include<bits/stdc++.h> using namespace std; int n; char a='A',m='A'; int main(){ cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(m>'Z')m='A'; cout<<m; m++; } a++; if(a>'Z')a='A'; m=a; cout<<"\n"; } return 0; }


测评信息: