| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <cmath> | ||
| 4 | #include <vector> | ||
| 5 | |||
| 6 | #include "task/include/task.hpp" | ||
| 7 | |||
| 8 | namespace orehov_n_jarvis_pass_seq { | ||
| 9 | |||
| 10 | struct Point { | ||
| 11 | double x; | ||
| 12 | double y; | ||
| 13 | 144 | explicit Point(double x = 0, double y = 0) : x(x), y(y) {} | |
| 14 | bool operator==(const Point &r) const { | ||
| 15 | ✗ | return ((std::abs(x - r.x) < 0.0001) && (std::abs(y - r.y) < 0.0001)); | |
| 16 | } | ||
| 17 | bool operator<(const Point &other) const { | ||
| 18 | ✗ | if (x != other.x) { | |
| 19 | ✗ | return x < other.x; | |
| 20 | } | ||
| 21 | ✗ | return y < other.y; | |
| 22 | } | ||
| 23 | }; | ||
| 24 | |||
| 25 | using InType = std::vector<Point>; | ||
| 26 | using OutType = std::vector<Point>; | ||
| 27 | using TestType = int; | ||
| 28 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 29 | |||
| 30 | } // namespace orehov_n_jarvis_pass_seq | ||
| 31 |