|
|
|
|
讨论 Discussion |
|
| |
454 |
#include<bits/stdc++.h>
using namespace std;
int main(){
freopen("p1686.in","r",stdin);
freopen("p1686.out","w",stdout);
int n,a[101][101],k=0;
cin>>n;
for(int i=n;i>=1;i--){
for(int j=1;j<=n;j++){
k++;
a[j][i]=k;
}
}N
for(int k=1;k<=n;k++){
for(int b=1;b<=n;b++){
cout<<setw(3)<<a[k];
}
cout<<endl;
}
fclose(stdin);
fclose(stdout);
return 0;
}
( ) |
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1000 |
|
其它 |
通过 |
400人 |
提交 |
3319次 |
通过率 |
12% |
难度 |
0 |
|
|
|
|
|
|