Wednesday 18 May 2011

10071-Back to High School Physics

#include<stdio.h>
int main()
{
    int v,t;
    while(scanf("%d%d",&v,&t))
    {
        if(v && t)
            printf("%d\n",2*v*t);
        else
            printf("%d\n",0);
    }
    return 0;
}

No comments:

Post a Comment