文章
1
粉丝
51
获赞
0
访问
695
#include <iostream>
#include <algorithm>
using namespace std;
int n, m, k;
int manu;
int res[101][101];
int a[101][101];
int main()
{
while(cin >> n >> m >> k)
{
for (int i = 1; i <= n; i++)
for (int j = 1; j <= m; j++)
{
cin >> a[i][j];
}
int row = n, lin = m;
for (int i = 0; i < k; i++)
{
cin >> manu;
if (manu == 1)
{
swap(row, lin);
for (int j = 1; j <= row; j++)
{
for (int k = 1; k <= lin; k++)
&...
登录后发布评论
暂无评论,来抢沙发