南邮 OJ 1385 Physics

Physics

时间限制(普通/Java) :  1000 MS/ 3000 MS          运行内存限制 : 65536 KByte
总提交 : 53            测试通过 : 45 

比赛描述

A particle has initial constant velocity. For a particle with initial velocity v find the displacement of that

particle if the time t is doubled.




输入

The input will contain two integers in each line. Each line makes one set of input. These two integers

denote the value of v (-10000 <= v <= 10000) and t(0<=t<= 500) ( 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.

样例输入

0 0
5 12

样例输出

0
120

提示

undefined

题目来源

Internet



#include<iostream>
int main(){
	int v,t;
	while(scanf("%d%d",&v,&t)==2){
		printf("%d\n",v*t*2);
	}
}






你可能感兴趣的:(ACM,physics,南邮OJ)