405183: GYM101810 K League of Demacia

Memory Limit:256 MB Time Limit:4 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

K. League of Demaciatime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

The war is about to start between Demacia and Noxus. Noxus's army has n soldiers. Noxus's soldiers are stronger than Demacia's soldiers, so Demacia's soldiers can win only if their number is larger than the number of Noxus's soldiers.

Lux is a magical girl from Demacia, she decided to help her city's army! Lux can shoot an infinite laser in a straight line with a width equal to z and can kill all the enemies in the path! Lux can send the laser only one time, so she needs to kill at least m soldiers to help Demacia's soldiers win the fight.

Lux stands at the point (0, 0) and she knows the positions of every soldier from Noxus, she wants to know if she can help Demacia's army to win the war. Can you help her?

Input

The first line contains an integer T (1 ≤ T ≤ 100) specifying the number of test cases.

The first line of each test case contains two integers n and m, and a floating point number z (1 ≤ n, m ≤ 1000, 0 < z ≤ 30000), in which n is the number of soldiers in Noxus's army, m is the minimum number of soldiers Lux must kill, and z is the width of Lux's laser.

Then n lines follow describe each Noxus's Soldier, in which the ith line contains 2 integers xi, yi ( - 104 ≤ xi, yi ≤ 104), representing the coordinates of the ith soldier.

It is guaranteed that no two soldiers share the same pair of coordinates, neither with Lux's position.

Output

For each test case, print a single line containing "Yes" (without quotes) if Demacia's army can win. Otherwise, print "No" (without quotes).

ExampleInput
1
5 3 2
1 1
1 2
2 -2
3 3
5 2
Output
Yes

加入题单

算法标签: