Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
68104 尹翊泽 放大的X C++ 通过 100 10 MS 256 KB 289 2023-02-02 14:40:48

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int t,n; int main(){ cin>>n; for(int a=1;a<=n;a++){ cin>>t; for(int i=1;i<=t;i++){ for(int j=1;j<=t;j++){ if((j==i)||(i+j==t+1)) cout<<"X"; else cout<<" "; } cout<<endl; } cout<<endl; } return 0; }


测评信息: