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

建议使用的浏览器:

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

1590:Searching

题目描述
"You know what?" Angel said, "There is a love-letter from me embeded on the lawn. And if you can find it, it's for you~"
"How can I find it on such a big lawn?"
"I will show you a hint: start from that tree which is in center of this lawn, and run directly to (X,Y) point. Please memorize the distance you'v passed. Then turn left with a angle A degree, and go ahead for k times of the length you'v passed in the first step. k is a real number from 0 to 1. When you arrive, repeat to turn left, and run for k times as far as the length of the last step. After many many times, you will reach a place, where I embed my letter..."
Of cause, Gardon wouldn't follow her hint simply. He just run there directly. Can you do it?
输入解释
Input have serveral test cases. Each cases have for real number: X,Y,A,k
输出解释
For each case, print the place where the treasure is embed.
输入样例
1 0 90 0.5
1 0 90 0
1 0 0 0.5
输出样例
(0.800,0.400)
(1.000,0.000)
(2.000,0.000)
来自杭电HDUOJ的附加信息
Author DYGG
Recommend linle

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

源链接: HDU-1590

最后修改于 2020-10-25T22:46:16+00:00 由爬虫自动更新

共提交 100

通过率 83.0%
时间上限 内存上限
1000/1000MS(Java/Others) 32768/32768K(Java/Others)