Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
68238 老师 放大的X C++ 通过 100 9 MS 256 KB 284 2023-02-03 16:04:51

Tests(1/1):


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


测评信息: