UVa 10071 - Back to High School Physics

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
 * C++: http://code.google.com/p/my-solved-problems/source/browse/trunk/Uva/10071+-+Back+to+High+School+Physics?r=41
 * C