UVA 10071(Back to High School Physics)

http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1012

开始做UVA上的题,然后发现白书推荐了这道题,一看直接上代码吧...

#include<stdio.h>

int main()
{
int v, t;
while( scanf( "%d%d", &v, &t) == 2)
{
printf("%d\n", 2 * v * t);
}
return 0;
}


你可能感兴趣的:(uva)