3/16/2013

10071 Back to High School Physics - UVA


  1. #include<iostream>
  2. using namespace std;
  3. int main ()
  4. {
  5.         int velocity , time;
  6.         while(cin>>velocity>>time)
  7.         {
  8.                 int displacement = 2*velocity*time;
  9.                 cout<<displacement<<endl;
  10.         }
  11.         return 0;
  12. }

You can find more of my solutions on Here

No comments:

Post a Comment