参考博客https://blog.csdn.net/hxxjxw/article/details/84986031
实验要求


代码1
#include<iostream>
#include<vector>
#include<ctime>
using namespace std;
int row;
vector<vector<int>> arr;
int x, y;
int random()
{
return rand() % 4;
}
void process(int e)
{
if (e == 1) {
if ((x % 2 == 0) && (x >=