Advertisement
Guest User

Untitled

a guest
May 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. ios_base::sync_with_stdio(false);
  7. cin.tie(NULL);
  8. double x,y,x1,y1,x2,y2,x3,y3,a,b;
  9. while(cin >>x1>>y1>>x2>>y2>>x2>>y2>>x3>>y3)){
  10. cin >>x1>>y1>>x2>>y2>>x2>>y2>>x3>>y3;
  11. a=(x1+x3)/2;
  12. b=(y1+y3)/2;
  13. x=2*a-x2;
  14. y=2*b-y2;
  15. cout<<x <<" "<<y <<"\n";
  16. }
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement