| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158633 | 陈襗葳 | 放大的X | C++ | Accepted | 4 MS | 268 KB | 417 | 2026-08-22 16:04:55 |
#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"; } }