Friday, April 29, 2016

UVA problem 10071 – Back to High School Physics

Problem link (Click here)

#include<stdio.h>

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



No comments:

Post a Comment