码迷,mamicode.com
首页 > 其他好文 > 详细

Problem B Back to High School Physics

时间:2014-05-26 15:14:39      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:style   c   class   tar   ext   a   

bubuko.com,布布扣 bubuko.com,布布扣 bubuko.com,布布扣

Problem B

Back to High School Physics

Input: standard input

Output: standard output

 

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

 

Input

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) 

 

Output

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

<!--[if !supportEmptyParas]--> <!--[endif]-->

Sample Input

0 0
5 12

Sample Output

0
120
___________________________________________________________________________________
Shahriar Manzoor
 

Problem B Back to High School Physics,布布扣,bubuko.com

Problem B Back to High School Physics

标签:style   c   class   tar   ext   a   

原文地址:http://www.cnblogs.com/7acmer/p/3746326.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!