| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158433 | 格林老师 | 放大的X | C++ | Accepted | 4 MS | 272 KB | 486 | 2026-08-21 19:13:28 |
#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<<"\n"; } return 0; }