Emiliatan

e157

May 4th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. /* e157           */
  2. /* AC (5ms, 84KB) */
  3. #include <cstdio>
  4.  
  5. using namespace std;
  6.  
  7. int n, a, b, t, v, d;
  8.  
  9. int main()
  10. {
  11.     scanf("%d", &n);
  12.     scanf("%d %d %d", &a, &b, &t);
  13.     a = a * t << 1;
  14.     while(n-- && scanf("%d %d", &v, &d))
  15.         printf("%d\n", a);
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment