Programming contests

Magas szintű programozási nyelvek 1, egyéni verseny, 2016. április 10.

April 10, 2016 10:00 AM – April 10, 2016 3:00 PM

Back to High School Physics

There is an object with an initial velocity of 0 and a constant acceleration. If its velocity after a certain time t is v, then what will its displacement be at time 2t?

Input Specification

The input will contain one test case in each line. Each test case consits of two integers v (−100 ≤ v ≤ 100) and t (0 ≤ t ≤ 200).

Output Specification

For each line of input, print a single integer in one line, denoting the displacement at time 2t.

Sample Input

  1. 0 0
  2. 5 12
download as text file

Output for Sample Input

  1. 0
  2. 120
download as text file
University of Debrecen; Faculty of Informatics; v. 05/24/2018