GCC Code Coverage Report


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

test/cpv/aizu-cgl/cgl_3_a.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/4/CGL/all/CGL_3_A
2 #include "../../../src/geo2d/ds/po/lib.hpp"
3
4 using namespace tifa_libs;
5 using poly = polygon<double>;
6
7 20 int main() {
8
1/2
✓ Branch 2 taken 20 times.
✗ Branch 3 not taken.
20 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
9
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
20 std::cout << std::fixed << std::setprecision(1);
10 u32 n;
11
1/2
✓ Branch 1 taken 20 times.
✗ Branch 2 not taken.
20 std::cin >> n;
12 20 poly p(n);
13 20 std::cin >> p;
14
2/4
✓ Branch 2 taken 20 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 20 times.
✗ Branch 6 not taken.
20 std::cout << p.area() << '\n';
15 20 return 0;
16 20 }
17