GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 10 / 0 / 10
Functions: 100.0% 1 / 0 / 1
Branches: 50.0% 10 / 0 / 20

test/cpv/aizu-itp2/itp2_10_a.bitset.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/util/alias/num/lib.hpp"
3 #include "../../../src/util/bitset_getdata/lib.hpp"
4
5 using namespace tifa_libs;
6 16 int main() {
7
1/2
✓ Branch 2 taken 16 times.
✗ Branch 3 not taken.
16 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
8 u32 n;
9
1/2
✓ Branch 1 taken 16 times.
✗ Branch 2 not taken.
16 std::cin >> n;
10 16 std::bitset<32> bs;
11 16 bitset_getdata<32>::getword(bs, 0) = n;
12
2/4
✓ Branch 1 taken 16 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 16 times.
✗ Branch 5 not taken.
16 std::cout << bs << '\n';
13
2/4
✓ Branch 2 taken 16 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 16 times.
✗ Branch 6 not taken.
16 std::cout << ~bs << '\n';
14
2/4
✓ Branch 2 taken 16 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 16 times.
✗ Branch 6 not taken.
16 std::cout << (bs << 1) << '\n';
15
2/4
✓ Branch 2 taken 16 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 16 times.
✗ Branch 6 not taken.
16 std::cout << (bs >> 1) << '\n';
16 16 return 0;
17 }
18