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: 63.6% 14 / 0 / 22

test/cpv/aizu-dsl/dsl_5_b.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/library/3/DSL/all/DSL_5_B
2 #include "../../../src/ds/fenwick/d2/lib.hpp"
3
4 using namespace tifa_libs;
5 30 int main() {
6
1/2
✓ Branch 2 taken 30 times.
✗ Branch 3 not taken.
30 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
7 30 fenwick2d<u32> tr(1003, 1003);
8 u32 n;
9
1/2
✓ Branch 1 taken 30 times.
✗ Branch 2 not taken.
30 std::cin >> n;
10
2/2
✓ Branch 0 taken 435941 times.
✓ Branch 1 taken 30 times.
435971 for (u32 i = 0, xl, xr, yl, yr; i < n; ++i) {
11
4/8
✓ Branch 1 taken 435941 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 435941 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 435941 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 435941 times.
✗ Branch 11 not taken.
435941 std::cin >> xl >> yl >> xr >> yr;
12 435941 tr.add(xl + 1, yl + 1, xr + 1, yr + 1, 1);
13 }
14 30 u32 mx = 0;
15
2/2
✓ Branch 0 taken 30030 times.
✓ Branch 1 taken 30 times.
30060 flt_ (u32, i, 1, 1002)
16
2/2
✓ Branch 2 taken 30060030 times.
✓ Branch 3 taken 30030 times.
30090060 flt_ (u32, j, 1, 1002) mx = std::max(mx, tr.sum(i, j));
17
2/4
✓ Branch 1 taken 30 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 30 times.
✗ Branch 5 not taken.
30 std::cout << mx << '\n';
18 30 return 0;
19 30 }
20