aoj-CGL_2_C.cpp

#include "../include/geometry/intersect.cpp"
#include "../include/template/initialize.cpp"

using namespace std;

using P = Point<float11>;
using L = Line<float11>;

int main() {
  int q;
  cin >> q;
  while (q--) {
    P a, b, c, d;
    cin >> a >> b >> c >> d;
    L l1(a, b), l2(c, d);
    P res = is_ll(l1, l2);
    cout << res << endl;
  }
  return 0;
}

Includes

Back