GCC Code Coverage Report


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

test/cpv/aizu-alds1/alds1_1_b.rgcd.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/lesson/1/ALDS1/all/ALDS1_1_B
2 #include "../../../src/nt/gl/gcd/lib.hpp"
3 #include "../../../src/nt/gl/rgcd/lib.hpp"
4
5 using namespace tifa_libs;
6 CEXP u32 LIMIT = 1e7;
7
8 10 int main() {
9
1/2
✓ Branch 2 taken 10 times.
✗ Branch 3 not taken.
10 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
10 10 rgcd rgcd_(LIMIT);
11 u32 x, y;
12
2/4
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 10 times.
✗ Branch 5 not taken.
10 std::cin >> x >> y;
13
4/6
✓ Branch 1 taken 7 times.
✓ Branch 2 taken 3 times.
✓ Branch 5 taken 7 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 7 times.
✗ Branch 9 not taken.
10 if (std::max(x, y) < LIMIT) std::cout << rgcd_(x, y) << '\n';
14
2/4
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 3 times.
✗ Branch 6 not taken.
3 else std::cout << gcd(x, y) << '\n';
15 10 return 0;
16 10 }
17