UVa 10071
地址:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1012
题意:给定t时刻速度v,求2t时刻位移。
mark:化简位移公式。
代码:
#include <stdio.h> int main() { int a,b; while(~scanf("%d%d", &a, &b)) printf("%d\n", 2*a*b); return 0; }