aoj-CGL_1_A.cpp GitHub #include "../include/geometry/intersect.cpp" #include "../include/template/initialize.cpp" using namespace std; using P = Point<float11>; using L = Line<float11>; int main() { P a, b, p; cin >> a >> b; L l(a, b); int q; cin >> q; while (q--) { cin >> p; P res = proj(l, p); cout << res << endl; } } Includes intersect.cpp initialize.cpp Back