Problem F
Vacuumba
You are developing software for a new generation of robotic
floor vacuums. Being an inexpensive, mass market robot, this
device has a fairly simple way of navigating around the room.
It can turn by some angle to the left or right and then move
forward in a straight line. A plan for the robot consists of a
sequence of these straight-line segments. The robot starts at
the origin, facing in the positive
![\includegraphics[width=0.5\textwidth ]{path}](/problems/vacuumba/file/statement/en/img-0001.png)
Input
Input consists of several test cases. The first line
contains an integer
Output
For each test case, print out the expected
Sample Input 1 | Sample Output 1 |
---|---|
2 2 0 10.5 90 5 1 -45 10 |
-5.000000 10.500000 7.071068 7.071068 |