Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
34492 U•ェ•*✔ 【入门】画正方形 C++ 通过 0 MS 252 KB 239 2024-01-07 14:40:43

Tests(10/10):


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


测评信息: