{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eThis year, ACM/ICPC World finals will be held in a hall in form of a simple polygon. The coaches and spectators are seated along the edges of the polygon. We want to place a rotating scoreboard somewhere in the hall such that a spectator sitting anywhere on the boundary of the hall can view the scoreboard (i.e., his line of sight is not blocked by a wall). Note that if the line of sight of a spectator is tangent to the polygon boundary (either in a vertex or in an edge), he can still view the scoreboard. You may view spectator\u0027s seats as points along the boundary of the simple polygon, and consider the scoreboard as a point as well. Your program is given the corners of the hall (the vertices of the polygon), and must check if there is a location for the scoreboard (a point inside the polygon) such that the scoreboard can be viewed from any point on the edges of the polygon.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first number in the input line, \u003ci\u003eT\u003c/i\u003e is the number of test cases. Each test case is specified on a single line of input in the form \u003ci\u003en\u003c/i\u003e \u003ci\u003ex\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e \u003ci\u003ey\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e \u003ci\u003ex\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e \u003ci\u003ey\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e ... \u003ci\u003ex\u003csub\u003en\u003c/sub\u003e\u003c/i\u003e \u003ci\u003ey\u003csub\u003en\u003c/sub\u003e\u003c/i\u003e where \u003ci\u003en\u003c/i\u003e (3 ≤ \u003ci\u003en\u003c/i\u003e ≤ 100) is the number of vertices in the polygon, and the pair of integers \u003ci\u003ex\u003csub\u003ei\u003c/sub\u003e\u003c/i\u003e \u003ci\u003ey\u003csub\u003ei\u003c/sub\u003e\u003c/i\u003e sequence specify the vertices of the polygon sorted in order.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eThe output contains \u003ci\u003eT\u003c/i\u003e lines, each corresponding to an input test case in that order. The output line contains either YES or NO depending on whether the scoreboard can be placed inside the hall conforming to the problem conditions.\u003c/p\u003e"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\r\n4 0 0 0 1 1 1 1 0\r\n8 0 0 0 2 1 2 1 1 2 1 2 2 3 2 3 0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eYES\r\nNO\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}