~/algor $ cat contests/round-7/Y
Y. Uniformly accelerated motion
Problem Y
ICPC rules
1000 ms
64 MB
A body moves in a straight line with constant acceleration: initial speed m/s, acceleration m/s². Find its speed after seconds and the distance covered in that time:
Input
One line with three integers: , and .
Output
One line with two numbers: — an integer, — with exactly 1 digit after the decimal point (for example, 32.0).
Note
Examples
Input #1
2 3 4
Output #1
14 32.0
Input #2
0 1 3
Output #2
3 4.5