GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 0.0% 0 / 0 / 11
Functions: 0.0% 0 / 0 / 1
Branches: 0.0% 0 / 0 / 24

test/cpv_local/math/trygub.loj2302.cpp
Line Branch Exec Source
1 // competitive-verifier: LOCALCASE test/cpv_local/_data/loj/2302
2
3 #include "../../../src/math/ds/trygub/lib.hpp"
4
5 using namespace tifa_libs;
6 using std::cin, std::cout;
7
8 int main() {
9 u32 n, t1, t2, t3;
10 cin >> n >> t1 >> t2 >> t3;
11 trygub_num<2> num;
12 flt_ (u32, i, 0, n) {
13 int op;
14 cin >> op;
15 if (op == 1) {
16 int a, b;
17 cin >> a >> b;
18 num.add(a, b);
19 } else {
20 int k;
21 cin >> k;
22 cout << num.get(k) << '\n';
23 }
24 }
25 }
26