test/cpv/aizu-cgl/cgl_2_b.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_2_B | ||
| 2 | #include "../../../src/geo2d/ds/l/lib.hpp" | ||
| 3 | #include "../../../src/geo2d/ds/p/lib.hpp" | ||
| 4 | #include "../../../src/geo2d/pred/is_ins_ss/lib.hpp" | ||
| 5 | |||
| 6 | using namespace tifa_libs; | ||
| 7 | using point_t = point<double>; | ||
| 8 | using line_t = line<double>; | ||
| 9 | |||
| 10 | 20 | int main() { | |
| 11 |
1/2✓ Branch 2 taken 20 times.
✗ Branch 3 not taken.
|
20 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 12 | u32 q; | ||
| 13 |
1/2✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
|
20 | std::cin >> q; |
| 14 |
2/2✓ Branch 0 taken 8064 times.
✓ Branch 1 taken 20 times.
|
8084 | flt_ (u32, i, 0, q) { |
| 15 | line_t l1, l2; | ||
| 16 | 8064 | std::cin >> l1 >> l2; | |
| 17 |
2/4✓ Branch 2 taken 8064 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 8064 times.
✗ Branch 6 not taken.
|
8064 | std::cout << is_ins_SS(l1, l2) << '\n'; |
| 18 | } | ||
| 19 | 20 | return 0; | |
| 20 | } | ||
| 21 |