Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
34333 zhouhuanyu 玙静 图像旋转 C++ 通过 0 MS 276 KB 377 2023-12-19 20:59:48

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int a[1001][1001], at[1001][1001]; int main(){ int n, m; cin >> n >> m; for(int i = 0; i < n; i++){ for(int j = 0; j < m; j++){ cin >> a[i][j]; at[j][n - 1 - i] = a[i][j]; } } for(int i = 0; i < m; i++){ for(int j = 0; j < n; j++){ cout << at[i][j] << " "; } cout << endl; } return 0; }


测评信息: