“Sometimes it is the people no one can imagine anything of who do the things no one can imagine.” ― Sir Alan Turing


ADS

ADS

Saturday, April 8, 2017

UVa 10071 Back to High School Physics Solution in C / C++

 

Source Code 

#include<stdio.h>

int main()

{

  int v, t;

  while (scanf("%d %d", & v, & t) == 2)

  {

    if (v == 0 && t == 0)

      printf("0n");

    else

      printf("%dn", 2 * v * t);

  }

  return 0;

}

No comments:

Post a Comment