201503-1 图像旋转
- C++
- 总结
本题链接:201503-1 图像旋转
本博客给出本题截图:
C++
#include <cstdio> using namespace std; const int N = 1010; int n, m; int q[N][N]; int main() { scanf("%d%d", &n, &m); for (int i = 0; i < n; i ++ ) for (int j = 0; j < m; j ++ ) scanf("%d", &q[i][j]); for (int i = m - 1; i >= 0; i -- ) { for (int j = 0; j < n; j ++ ) printf("%d ", q[j][i]); puts(""); } return 0; }
总结
水题,不解释