題目列表
簡單 時間限制:3 s記憶體限制:128 MB

Online Judge - 10071 - Back to High School Physics

來源代碼:UVa
前往提交 ↓

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

討論

登入後即可加入討論。 登入

目前還沒有討論文章。

最近提交

Romulus
Python · 2026-09-26 17:59
AC
Romulus
Python · 2026-09-26 17:56
RE
Romulus
Python · 2026-09-26 17:56
CE
123123
Python · 2026-09-24 00:37
AC
123123
Python · 2026-09-24 00:36
AC

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

登入