英语翻译InputThere are multiple test cases.The first line contai

洗眉拉2022-10-04 11:39:543条回答

英语翻译
Input
There are multiple test cases.The first line contains an integer n (0 < n ≤ 100).The body of Xiaoxingxing can be decribed as a polygon of n points.Each of the following n lines contains two integers xi and yi (|xi| ≤ 10000,0 ≤ yi ≤ 10000) ,descibing a point of the polygon clockwise or counter-clockwise.The first point of the polygon is always the origin an d the polygon will not be self-crossed.The last line of each test case contains two integers X and Y (xi < X ≤ 10000,0 ≤ Y ≤ 10000),descrbing the position of the Lost Piece.Xiaoxingxing can only roll with some point fixed on the ground where y = 0.
Output
For each test case,first output one line containing "Case x:" where x is the case number (starting from 1).If it is possible for Xiaoxingxing to reach his LP,output the minimum angel in degrees he has to roll before he can reach his LP.The result should be accurate up to 2 decimal places.Otherwise,output "Impossible" instead.
补充一句:谢绝机译!

已提交,审核后显示!提交回复

共3条回复
格调依旧 共回答了20个问题 | 采纳率95%
输入
有多个测试案例.第一行包含一个整数(0,100≤).身体xiaoxingxing可以被描述为一个多边形的点.以下的每一行含有2个整数,十一和义(|西|≤10000,0≤易≤10000),描述目前一点的多边形的顺时针或逆时针.第一点是多边形的总的起源和多边形不self-crossed.最后一行的每一个测试用例包含2个整数与(十一“×≤10000,0≤辎≤10000),表示位置的一块.xiaoxingxing只能推出一些点固定在地面上,r = 0.
输出功率
对于每个测试案例,第一输出一个包含“案例:“哪里是病例数(从1开始).如果这是可能的xiaoxingxing达到
1年前
yeyenai 共回答了1个问题 | 采纳率
第一段是:
有多个测试案例。第一行包含一个整数(0,100≤)。身体xiaoxingxing可以被描述为一个多边形的点。以下的每一行含有2个整数,十一和义(|西|≤10000,0≤易≤10000),描述目前一点的多边形的顺时针或逆时针。第一点是多边形的总的起源和多边形不self-crossed。最后一行的每一个测试用例包含2个整数与(十一“×≤10000,0≤辎≤10000),表示位置的一...
1年前
王继 共回答了17个问题 | 采纳率64.7%
输入
有多个测试用例。第一行包含一个整数N(0

1年前

0
1年前

相关推荐