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