fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x1,y1,x2,y2,x3,y3;
  6. cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
  7. if ((x1==x2 && y1==y2) || (x2==x3 && y2==y3) || (x3==x1 && y3==y1)) cout << "no";
  8. else cout << "yes";
  9. return 0;
  10. }
Success #stdin #stdout 0s 15232KB
stdin
1 1 2 2 3 3
stdout
yes