andre_joy

导航

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;
}

posted on 2012-07-12 16:31  andre_joy  阅读(92)  评论(0编辑  收藏  举报