Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <string>using namespace std;bool flag[1000] = {false};struct Point{int x;int y;};struct Rectangle{Point LD; //左下Point RU; //右上}Rect[1000];bool beCovber(Point p,int number,int N){int i;for (i = number + 1; i < N; i++){if ((Rect[i].LD.x < p.x) && (p.x < Rect[i].RU.x) && (Rect[i].LD.y < p.y) && (p.y < Rect[i].RU.y)) //被覆盖return true;if (p.x == Rect[i].LD.x || p.x == Rect[i].RU.x){if ((Rect[i].LD.y < p.y) && (p.y < Rect[i].RU.y))return true;}if (p.y == Rect[i].LD.y || p.y == Rect[i].RU.y)