Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
34472 yihang 【入门】画正方形 C++ 解答错误 0 MS 252 KB 220 2024-01-07 14:24:59

Tests(5/10):


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


测评信息: