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% 9 / 0 / 18

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