| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158593 | 王慕哲 | 放大的X | C++ | Accepted | 62 MS | 264 KB | 466 | 2026-08-22 15:26:16 |
#include <iostream> 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<<endl; } cout<<endl; } return 0; }