hiho week 140 register

Ended

Participants:351

Verdict:Accepted
Score:100 / 100
Submitted:2017-03-10 15:35:25

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX