Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     double v, l;
  9.     cin >> n >> v >> l;
  10.     l *= 60;
  11.     l /= v;
  12.     for (int i = 0; i < n; ++i)
  13.     {
  14.         double a, b;
  15.         cin >> a >> b;
  16.         l += b;
  17.     }
  18.     cout.precision(2);
  19.     cout << fixed << l;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement