Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130006 陈华仁星 拐角方阵 C++ Accepted 1 MS 272 KB 335 2025-09-07 11:37:03

Tests(2/2):


Code:

#include <iostream> #include <algorithm> using namespace std; int main() { int n; cin >> n; for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { cout << min(i + 1, j + 1); if (j != n - 1) cout << " "; } cout << endl; } return 0; }