GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 10 / 0 / 10
Functions: 100.0% 1 / 0 / 1
Branches: 56.2% 9 / 0 / 16

test/cpv_local/geo2d/cvh_circum.uva1303.cpp
Line Branch Exec Source
1 // competitive-verifier: LOCALCASE test/cpv_local/_data/uva/1303
2
3 #include "../../../src/geo2d/ds/cvh/lib.hpp"
4 #include "../../../src/io/container/lib.hpp"
5
6 using namespace tifa_libs;
7 using std::cin, std::cout;
8 using data_t = f64;
9 using Point2 = point<data_t>;
10 using ConvexHull2 = cvh<data_t>;
11
12 CEXP data_t PI = pi_v<data_t>;
13
14 2 int main() {
15
1/2
✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
2 cout << std::fixed << std::setprecision(0);
16
17 u32 t;
18
1/2
✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
2 cin >> t;
19
2/2
✓ Branch 0 taken 101 times.
✓ Branch 1 taken 2 times.
103 while (t--) {
20 u32 n, l;
21
2/4
✓ Branch 1 taken 101 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 101 times.
✗ Branch 5 not taken.
101 cin >> n >> l;
22
1/2
✓ Branch 1 taken 101 times.
✗ Branch 2 not taken.
101 vec<Point2> vp(n);
23 101 cin >> vp;
24
2/4
✓ Branch 4 taken 101 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 101 times.
✗ Branch 8 not taken.
101 cout << ConvexHull2{vp}.circum() + 2 * PI * l << '\n';
25 101 }
26 2 }
27