fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a >> b;
  7. c = b - (a + (-b));
  8. cout << c << " " << c - (a + (-b)) << " " << c - ((a + (-b)) * 2);;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5280KB
stdin
5 2
stdout
-1 -4 -7