rodrwan

The nutty professor

Apr 27th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int t, d, n, s, p;
  9.     while (t != 0, cin >> t)
  10.     {
  11.         for (int i=0; i<t; i++)
  12.         {
  13.             cin >> d;
  14.             cin >> n;
  15.             cin >> s;
  16.             cin >> p;
  17.             int res = d+(n*(p-s));
  18.         cout << ((res > 0) ? "do not parallelize":((res < 0) ? "parallelize":"does not matter")) << endl;
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment