Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158408 格林老师 放大的X C++ Presentation Error 4 MS 268 KB 482 2026-08-21 14:57:58

Tests(0/1):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int T; cin>>T; for (int i=0;i<T;i++){ int n; //奇数 cin>>n; for (int x=0;x<n;x++){ for (int y=0;y<n;y++){ if (x==y || x+y==n-1){ cout<<"X"; } else{ cout<<" "; } } cout<<"\n"; } } cout<<endl; return 0; }