编程介的小学生 2017-08-24 03:52 采纳率: 20.5%
浏览 811
已采纳

Egg Painting

Marjar wants to play egg-painting. It needs to peel off some part of the egg shell and take out the yolk, and then paint a picture on the egg shell. But Marjar don't want to destroy the yolk. This seems quite difficult for him to take the yolk out. He decides to make a hole that is a spherical polygon consisting of n arcs of the great circles connecting n vertices. But he didn't know whether the yolk could come out or not from the hole he created on the egg shell. Your task is helping him to determine whether the hole is big enough. His egg is a sphere with radius R while the yolk is also a sphere with radius r inside the egg.

Input

There are multiple test cases. The first line of input contains an integer T (0 < T ≤ 50) indicating the number of test cases. Then T test cases follow.

The first line of each test case contains 3 integers n, R and r(0 < n ≤ 50, 0 < r ≤ R ≤ 10000). Then n lines follow, telling the vertices of the hole in counterclockwise order when viewing from outside the egg. Each of the n lines contains 2 real numbers, each of which contains at most 2 digits after the decimal point, indicating the longitude and the latitude of the vertex. The longitude and the latitude are measured in degree. The longitude will be in (180, 180] while the latitude will be in [-90, 90]. It is guaranteed that the spherical polygon will not cross itself.

Output

For each test case, output "Yes" if it is possible to take out the yolk from through the hole in one line. Otherwise output "No".

Sample Input

1
3 10 1
0 0
90 0
0 90
Sample Output

Yes

  • 写回答

1条回答 默认 最新

  • threenewbee 2017-09-04 15:48
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度