16 条题解
-
1
#include<bits/stdc++.h> using namespace std; #define LL long long int n[100][100]; int main() { int b , e = 1; cin >> b; for(int x = 1 ;x <= b ;x ++) { for(int v= 1; v <= b ; v++) { n[x][v] = e++; } } for(int x = 1 ; x <=b ;x++) { for(int v = 1; v <= b ; v++) cout << n[v][x] << " "; cout << endl; } }
信息
- ID
- 1042
- 时间
- 1000ms
- 内存
- 32MiB
- 难度
- 6
- 标签
- 递交数
- 964
- 已通过
- 301
- 上传者