图形化编辑器。
区域R的判断比较麻烦,其他很简单。
记住 行列别弄反了 - -
是大写字母O 不是数字0
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int map[300][300];
int dx[] = {0,0,1,-1};
int dy[] = {1,-1,0,0};
int n,m;
int x1,y1,x2,y2;
int Judge(int x,int y){
if(x <= m && x >= 1 && y <= n && y >= 1) return 1;
return 0;
}
void Creat(){
scanf("%d%d",&m,&n);
fo......
阅读全文