# UVa 10071

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

-------------------------------------------------------------------

The input will contain two integers in each line

#include "iostream"

using namespace std;

int main()
{
int v, t;
while(cin>>v>>t)
cout<<(2*v*t)<<endl;
return 0;
}

#### UVA10071 Back to High School Physics【水题】

2016-08-15 22:40:21

#### 算法竞赛入门经典第4章 【uvaoj习题（一）】

2013-03-30 11:53:50

#### Uva 10071

2011-08-19 23:19:20

#### UVA 10071

2014-03-11 23:44:44

#### uva 10071

2013-11-09 09:58:43

#### 华为悦盒（IPTV）盒子开机时卡广告图，进入IPTV桌面显示10071错误的对应方法

2018-04-07 22:27:11

#### uva oj 10071

2011-09-18 00:05:19

#### 10071

2013-03-08 19:42:50

#### uva最全ac代码

2013年07月04日 4.18MB 下载

#### 100 - The 3n + 1 problem.c

2014年01月26日 936B 下载