Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
34422 未命名(之人) 【入门】画正方形 C++ 通过 0 MS 248 KB 262 2024-01-07 11:50:43

Tests(10/10):


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


测评信息: