| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158588 | 林睿 | 放大的X | C++ | Accepted | 4 MS | 272 KB | 494 | 2026-08-22 15:23:33 |
#include <iostream> #include <string> using namespace std; int main() { int T, n; cin >> T; while (T--) { cin >> n; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (j == i || j == n - 1 - i) cout << 'X'; else cout << ' '; } cout << "\n"; } cout << "\n"; // 每组输出后空一行 } return 0; }