Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- double x,y,x1,y1,x2,y2,x3,y3,a,b;
- while(cin >>x1>>y1>>x2>>y2>>x2>>y2>>x3>>y3)){
- cin >>x1>>y1>>x2>>y2>>x2>>y2>>x3>>y3;
- a=(x1+x3)/2;
- b=(y1+y3)/2;
- x=2*a-x2;
- y=2*b-y2;
- cout<<x <<" "<<y <<"\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement