fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n;
  7. cin>>n;
  8. int x,y,u,v;
  9. while(n--)
  10. {
  11. cin>>x>>y>>u>>v;
  12. int sox = u * 2 - x;
  13. int soy = v * 2 - y;
  14. cout<<sox<<' '<<soy<<'\n';
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty