Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
34407 | TheFirstGreen | 【入门】画正方形 | C++ | 通过 | 0 MS | 248 KB | 259 | 2024-01-07 11:25:08 |
#include<iostream> using namespace std; int main(){ int n; char z='A'; cin>>n; for(int i=1;i<=n;i++){ char x=z; for(int j=1;j<=n;j++){ cout<<x; ++x; if(x>'Z')x='A'; } ++z; if(z>'Z')z='A'; cout<<'\n'; } return 0; }