Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <iostream>
- using namespace std;
- int main()
- {
- int t, d, n, s, p;
- while (t != 0, cin >> t)
- {
- for (int i=0; i<t; i++)
- {
- cin >> d;
- cin >> n;
- cin >> s;
- cin >> p;
- int res = d+(n*(p-s));
- cout << ((res > 0) ? "do not parallelize":((res < 0) ? "parallelize":"does not matter")) << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment