crowulll

Untitled

Aug 18th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4. long long  ax, ay, bx, by, cx, cy;
  5. int main(){
  6.     cin >> ax >> ay >> bx >> by >> cx >> cy;
  7.     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";
  8.     else cout << "No";
  9. }
  10.  
Advertisement
Add Comment
Please, Sign In to add comment