Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
431806 方相宜 [GESP202309 二级] 小杨的 X 字矩阵 C++ 通过 100 14 MS 240 KB 367 2026-03-12 19:21:14

Tests(10/10):


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


测评信息: