F Land Overseer

本文讲述了璃月七星之一的刻晴巡查房地产建设的故事。刻晴从办公室出发,需要依次访问两个地点:赤王遗迹和绝云间。这些位置可以用二维笛卡尔坐标系表示。为了完成巡查,刻晴只需在距离目标地点不超过R的范围内即可。问题求解最短巡查路径的长度。题目属于计算几何范畴,需要判断半径与y坐标的关系来确定路径选择。
摘要由CSDN通过智能技术生成

The role of Keqing, Yuheng of the Liyue Qixing, is to manage real estate and construction in Liyue.
Today Keqing decides to leave her office, and visit two places - Chasm, and Jueyun Karst - to make sure the building progress there is at a reasonable pace.
The location of Keqing’s office and the two places to visit can be denoted as three points on a 2D Cartesian coordinate system.
Keqing’s office, the start point, is Located at Point O (0,0).
Chasm is located at Point A (a,b).
Jueyun Karst is located at Point B (2a,0).
Keqing plans to visit Chasm first and then go to Jueyun Karst. Because Keqing is an experienced land overseer, she does not need to be at the exact location to do her job. She can finish the visit if the distance between her and the target point is no greater than R.
Please help Keqing find the shortest path to visiting Chasm and Jueyun Karst.
Input
There are T test cases in this problem.
The

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Prime me

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值