|
|
|
|
讨论 Discussion |
|
| |
G |
#include<iostream>
#include<iomanip>
using namespace std;
int main(){
freopen("p1704.in","r",stdin);
freopen("p1704.out","w",stdout);
int k,x,y,z;
cin>>x;
for(k=1;k<=x;k++){
cout<< setw(x-k)<<"";
for(y=1;y<=k;y++)cout<<y;
y--;
for(z=1;z<=k-1;z++){y--;cout<<y; }
cout<<endl;
}
fclose(stdin);
fclose(stdout);
return 0;
}
( ) |
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1704 |
|
模拟 |
通过 |
23人 |
提交 |
40次 |
通过率 |
57% |
难度 |
0 |
|
|
|
|
|
|