Saturday 2 June 2012

UVa 10071 Back to High School Physics Solution


#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