| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <string> | ||
| 4 | #include <tuple> | ||
| 5 | #include <vector> | ||
| 6 | |||
| 7 | #include "task/include/task.hpp" | ||
| 8 | |||
| 9 | namespace tsarkov_k_jarvis_convex_hull { | ||
| 10 | |||
| 11 | struct Point { | ||
| 12 | int x = 0; | ||
| 13 | int y = 0; | ||
| 14 | |||
| 15 | bool operator==(const Point &other_point) const { | ||
| 16 |
8/8✓ Branch 0 taken 676 times.
✓ Branch 1 taken 312 times.
✓ Branch 2 taken 650 times.
✓ Branch 3 taken 26 times.
✓ Branch 4 taken 104 times.
✓ Branch 5 taken 52 times.
✓ Branch 6 taken 52 times.
✓ Branch 7 taken 52 times.
|
1144 | return (x == other_point.x) && (y == other_point.y); |
| 17 | } | ||
| 18 | }; | ||
| 19 | |||
| 20 | using InType = std::vector<Point>; | ||
| 21 | using OutType = std::vector<Point>; | ||
| 22 | using TestType = std::tuple<int, std::string>; | ||
| 23 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 24 | |||
| 25 | } // namespace tsarkov_k_jarvis_convex_hull | ||
| 26 |