4 条题解
-
1
#include <bits/stdc++.h>
using namespace std;
int main() { int num; cin >> num;
for (int i = 1; i <= num; i++) { for (int j = 1; j <= num * 2 - ((i * 2) - 1); j++) { cout << "*"; } for (int k = 1; k <= ((i * 2) - 1); k++) { cout << "$"; } cout << endl; } return 0;
}
- 1
信息
- ID
- 45
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 2
- 标签
- 递交数
- 636
- 已通过
- 384
- 上传者