Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- using namespace std;
- long long ax, ay, bx, by, cx, cy;
- int main(){
- cin >> ax >> ay >> bx >> by >> cx >> cy;
- if (((ax-bx)*(ax-bx) + (ay-by)*(ay-by) - (cx-bx)*(cx-bx) - (cy-by)*(cy-by) == 0) && ((ax-bx)*(by-cy) != (bx-cx)*(ay-by))) cout << "Yes";
- else cout << "No";
- }
Advertisement
Add Comment
Please, Sign In to add comment