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: 50.0% 6 / 0 / 12

test/cpv/aizu-itp2/itp2_10_b.dbitset.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/lesson/8/ITP2/all/ITP2_10_B
2 #include "../../../src/ds/dbitset/lib.hpp"
3
4 using namespace tifa_libs;
5 14 int main() {
6
1/2
✓ Branch 2 taken 14 times.
✗ Branch 3 not taken.
14 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
7 u32 a, b;
8
2/4
✓ Branch 1 taken 14 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 14 times.
✗ Branch 5 not taken.
14 std::cin >> a >> b;
9 14 dbitset ba(32), bb(32);
10 14 ba.getword(0) = a;
11 14 bb.getword(0) = b;
12
1/2
✓ Branch 3 taken 14 times.
✗ Branch 4 not taken.
14 std::cout << (ba & bb) << '\n';
13
1/2
✓ Branch 3 taken 14 times.
✗ Branch 4 not taken.
14 std::cout << (ba | bb) << '\n';
14
1/2
✓ Branch 3 taken 14 times.
✗ Branch 4 not taken.
14 std::cout << (ba ^ bb) << '\n';
15 14 return 0;
16 14 }
17