文章
3
粉丝
15
获赞
6
访问
1.2k
暴力解法,暴力美学
#include<iostream>
using namespace std;
int main() //5*5矩阵的输入
{
int arr[5][5];
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
{
cin >> arr[i][j];
}
}
int x = 0, y = 0, a = 0, b = 0, swap1 = 0, swap2 = 0, swap3 = 0, swap4 = 0;
int swap5 = 0,swap6 = 0,swap7 = 0,swap8 = 0,swap9 = 0;
cin >> x >> y >> a >> b; //输入模式(x和y代表输入模式,a和b代表输入位置)
if (x == 1 && y == 2) //...
登录后发布评论
暂无评论,来抢沙发