GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 11 / 0 / 11
Functions: 100.0% 1 / 0 / 1
Branches: 58.3% 7 / 0 / 12

test/cpv/aizu-alds1/alds1_1_b.mpi.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_mpi/lib.hpp"
3 #include "../../../src/util/rand/lib.hpp"
4
5 using namespace tifa_libs;
6
7 10 int main() {
8
1/2
✓ Branch 2 taken 10 times.
✗ Branch 3 not taken.
10 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
9 10 mpi x, y;
10 10 std::cin >> x >> y;
11 10 rand_gen<u32> g('0', '9');
12
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 strn s = "1145141919810";
13
3/4
✓ Branch 2 taken 10000 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 10000 times.
✓ Branch 5 taken 10 times.
10010 flt_ (u32, i, 0, 1000) s += (char)g();
14
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 const mpi C = s;
15
1/2
✓ Branch 6 taken 10 times.
✗ Branch 7 not taken.
10 std::cout << gcd_mpi(x * C, y * C) / C << '\n';
16 10 return 0;
17 10 }
18