2 条题解
-
1
#include <iostream> using namespace std; int main() { int n; cin >> n; int a[n + 1][n + 1]; for (int i = n; i >= 1; i--) { for (int j = n; j >= 1; j--) { a[i][j] = max(i, j); } } for (int i = 1; i <= n; i++) { for (int j = n; j >= 1; j--) { cout << " " << a[i][j]; } cout << endl; } return 0; }
-
-1
真AC
#include <bits/stdc++.h> using namespace std; int main() { cout<<' '<<' '<<4<<' '<<' '<<3<<' '<<' '<<2<<' '<<' '<<1<<endl cout<<' '<<' '<<4<<' '<<' '<<3<<' '<<' '<<2<<' '<<' '<<2<<endl cout<<' '<<' '<<4<<' '<<' '<<3<<' '<<' '<<3<<' '<<' '<<3<<endl cout<<' '<<' '<<4<<' '<<' '<<4<<' '<<' '<<4<<' '<<' '<<4<<endl; return 0; }
- 1
信息
- ID
- 203
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- 2
- 标签
- 递交数
- 61
- 已通过
- 39
- 上传者