SHARE
TWEET

Untitled

a guest May 16th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top