簡單 時間限制:3 s記憶體限制:256 MB

Online Judge - 10071 - Back to High School Physics

來源代碼:UVa
數學模擬CPE歷屆試題CPE一星
前往提交 ↓

A particle has initial velocity and acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time?

輸入說明

The input will contain two integers in each line. Each line makes one set of input. These two integers denote the value of v (−100 ≤ v ≤ 100) and t (0 ≤ t ≤ 200) (t means at the time the particle gains that velocity)

輸出說明

資料格式說明

For each line of input print a single integer in one line denoting the displacement in double of that time

輸入輸出範例

範例 1

範例輸入
0 0
5 12
範例輸出
0
120

範例 2

範例輸入
10 5
-3 4
範例輸出
100
-24

範例 3

範例輸入
-100 0
-100 200
100 200
範例輸出
0
-40000
40000
開啟討論
開啟紀錄

登入後即可撰寫程式、測試範例及提交解答。

登入