|
|
|
|
讨论 Discussion |
|
| |
7788 |
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; ++i) {
for (int j = 1; j <= i; ++j) {
cout << j;
}
for (int k = i - 1; k >= 1; --k) {
cout << k;
}
cout << endl;
}
return 0;
}
( ) |
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1000 |
|
其它 |
通过 |
398人 |
提交 |
3301次 |
通过率 |
12% |
难度 |
0 |
|
|
|
|
|
|