UVA-10071 - Back to High School Physics

  • UVa Online Judge 解題結果請於 Submit 後,參閱 uHunt
  • 如果你有任何建議與指教,歡迎於下方留言一起討論喔!
  • 本題選為「20171219 大學程式能力檢定 CPE」題目。
  • 相同題目:ZOJ-d226

題意概要

某一個粒子有一初速度和等加速度。假設在 秒後此粒子的速度為 ,請問這個粒子在 秒後所經過的位移是多少。


Input

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


Output

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


Sample Input

0 0
5 12

Sample Output

0
120
profile-image
David Lu
Hello, I'm David Lu. I am a graduate student in Department of Computer Science at National Chiao Tung University, Taiwan. I am in the Networking and Sensing Systems (NSS) Lab at NCTU. If you have any question, please feel free to contact with me.
comments powered by Disqus