GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 13 / 0 / 13
Functions: 100.0% 1 / 0 / 1
Branches: 56.2% 18 / 0 / 32

test/cpv/aizu-info1/info1_12_e.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/lesson/9/INFO1/all/INFO1_12_E
2 #include "../../../src/ds/ndvec/lib.hpp"
3
4 using namespace tifa_libs;
5 10 int main() {
6
1/2
✓ Branch 2 taken 10 times.
✗ Branch 3 not taken.
10 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
7 u32 x, y, z, n;
8
4/8
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 10 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 10 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 10 times.
✗ Branch 11 not taken.
10 std::cin >> x >> y >> z >> n;
9 10 ndvec<3, i32> nv(51, 51, 51);
10
2/2
✓ Branch 0 taken 58548 times.
✓ Branch 1 taken 10 times.
58558 for (u32 i = 0, a, b, c; i < n; ++i) {
11
3/6
✓ Branch 1 taken 58548 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 58548 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 58548 times.
✗ Branch 8 not taken.
58548 std::cin >> a >> b >> c;
12 58548 nv(a, b, c) = 1;
13 }
14 u32 q;
15
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 std::cin >> q;
16
2/2
✓ Branch 0 taken 58636 times.
✓ Branch 1 taken 10 times.
58646 for (u32 i = 0, a, b, c; i < q; ++i) {
17
3/6
✓ Branch 1 taken 58636 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 58636 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 58636 times.
✗ Branch 8 not taken.
58636 std::cin >> a >> b >> c;
18
2/4
✓ Branch 2 taken 58636 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 58636 times.
✗ Branch 6 not taken.
58636 std::cout << nv(a, b, c) << '\n';
19 }
20 10 return 0;
21 10 }
22