UVa 10071 - Back to High School Physics

10071 - Back to High School Physics

 * http://acm.uva.es/p/v100/10071.html

Summary
This hardest part of this problem is understanding the question and actually believing that they would ask something so easy.

Explanation
We are given the velocity v at time t of a particle with constant acceleration. We want to know the distance it travelled at time 2t.

Input
0 0 5 12

Output
0 120

Solution

 * C++: http://acm-solution.blogspot.com/2010/10/problem-solution-c-hints-httpwww.html