当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

6850:Game

题目描述
Notice:Don't output extra spaces at the end of one line.

Dodo bird and ddd are playing a stone game on a 2-d plane. There are $n$ points on the plane where they can put the stone. The rule is as follows:

- Before the game start, The stone is at the first point.
- Dodo and ddd move the stone in turn, Dodo moves first.
- In the first move, the player can move the stone to any point except the first point.
- Starting from the second move, assume the stone is currently at point $x$, and the distance of the stone traveled in the last move is $d$. The player can move the stone to a point $y$ if and only if $\text{distance(x,y)} > d$ and point $y$ has never been visited before.
- If a player cannot make a move, he loses the game.

Please determine who will win the game if both player use the best strategy.
输入解释
The first line contains an integer $T(1 \leq T \leq 100)$, indicating the number of test cases.

Each test case contains several lines. The first line contains an integer $n(2 \leq n \leq 2000)$, indicating the number of points. Next $n$ lines, each line contains two integers $x_i, y_i(-10^9 \leq x, y \leq 10^9)$, indicating the coordinate of the i-th point.

It is guaranteed that there are at most 12 test cases with $n > 500$.
输出解释
For each test case, If Dodo can win the game, print "YES". Otherwise, print "NO".
输入样例
2
5
1 1
0 0
2 0
0 2
2 2
4
1 1
0 0
0 2
2 2
输出样例
NO
YES
来自杭电HDUOJ的附加信息
Recommend IceyWang

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-6850

最后修改于 2020-10-25T23:34:55+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
30000/15000MS(Java/Others) 524288/524288K(Java/Others)