| Ball in a Rectangle | 
There is a rectangle on the cartesian plane, with bottom-left corner at (0,0) and top-right corner at (L, W). There is a ball centered at (x, y), with radius=R, shown below
 
At time 0, the ball starts to move along a ray with polar angle a (the angle from positive x-axis to the ray, rotating counter-clockwise). When hitting the rectangle boundary, the reflex angle always equals to the incidence angle. The ball's velocity is always v (i.e. it never changes when hitting the rectangle). Where is the center of the ball at time s?
 L,W
L,W 109, 
1
109, 
1 R
R 5, 
R
5, 
R x
x L - R, 
R
L - R, 
R y
y W - R, 
0
W - R, 
0 a < 360, 1
a < 360, 1 v, s
v, s 109), as stated above. The input 
terminates with 
L = W = x = y = R = a = v = s = 0, which should not be processed.
109), as stated above. The input 
terminates with 
L = W = x = y = R = a = v = s = 0, which should not be processed.
100 100 80 10 5 90 2 23 110 100 70 10 5 180 1 9999 0 0 0 0 0 0 0 0
80.00 56.00 71.00 10.00
Problemsetter: Rujia Liu, Special Thanks: Yiming Li, Shamim Hafiz & Sohel Hafiz