GCC Code Coverage Report


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

test/cpv/library-checker-number_theory/kth_root_mod.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/kth_root_mod
2 #include "../../../src/nt/residue/kth/lib.hpp"
3
4 using namespace tifa_libs;
5 22 int main() {
6
1/2
✓ Branch 2 taken 22 times.
✗ Branch 3 not taken.
22 std::cin.tie(nullptr)->std::ios::sync_with_stdio(false);
7 i64 t;
8
1/2
✓ Branch 1 taken 22 times.
✗ Branch 2 not taken.
22 std::cin >> t;
9
2/2
✓ Branch 0 taken 88722 times.
✓ Branch 1 taken 22 times.
88744 while (t--) {
10 u64 k, y, p;
11
3/6
✓ Branch 1 taken 88722 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 88722 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 88722 times.
✗ Branch 8 not taken.
88722 std::cin >> k >> y >> p;
12 88722 auto res = kth_root(y, k, p);
13
5/8
✓ Branch 1 taken 76758 times.
✓ Branch 2 taken 11964 times.
✓ Branch 4 taken 76758 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 88722 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 88722 times.
✗ Branch 11 not taken.
88722 std::cout << (res ? (i64)res.value() : -1) << '\n';
14 }
15 22 return 0;
16 }
17