设为首页 加入收藏

TOP

UvaOJ10071 - Back to High School Physics
2015-07-20 17:51:59 来源: 作者: 【 】 浏览:2
Tags:UvaOJ10071 Back High School Physics

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.

Sample Input

0 0
5 12

Sample Output

0
120
___________________________________________________________________________________

Shahriar Manzoor

#include
  
   
#include
   
     #include
    
      #include
     
       #include
       #include
       
         #include
        
          #include
         
           #include
          
            //#define lll using namespace std; int main() { #ifdef lll freopen("C:\\Documents and Settings\\K70\\桌面\\cin.txt","r",stdin); freopen("C:\\Documents and Settings\\K70\\桌面\\out.txt","w",stdout); #endif long long a,b; while(cin>>a>>b) { cout<<2*b*a<
           
            

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇HDU 4969 Just a Joke(积分) 下一篇HDU4719-Oh My Holy FFF(DP线段树..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: