| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 85004 | sh25_zhuhy | 画正方形 | C++ | 通过 | 1 MS | 248 KB | 357 | 2026-03-05 20:38:45 |
#include<iostream> #include<cctype> using namespace std; const char j='A'; int main(){ char i='A'; int n; cin>>n; for(int o=0;o<n;++o){ for(int y=0;y<n;++y){ cout<<char(i); if(i<'Z') ++i; else i=j; } cout<<endl; i=j+o+1; if(i>'Z') i=j; } return 0; }