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: 66.7% 4 / 0 / 6

test/cpv/library-checker-big_integer/division_of_hex_big_integers.cpp
Line Branch Exec Source
1 // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/division_of_hex_big_integers
2 #include "../../../src/io/fastin/lib.hpp"
3 #include "../../../src/io/fastout/lib.hpp"
4 #include "../../../src/math/ds/mpi/lib.hpp"
5
6 using namespace tifa_libs;
7 27 int main() {
8 u32 t;
9 27 fin_uint >> t;
10 27 strn s1, s2;
11
2/2
✓ Branch 0 taken 1123896 times.
✓ Branch 1 taken 27 times.
1123923 while (t--) {
12 1123896 fin >> s1 >> s2;
13
2/4
✓ Branch 1 taken 1123896 times.
✗ Branch 2 not taken.
✓ Branch 6 taken 1123896 times.
✗ Branch 7 not taken.
1123896 mpi a = mpi::from_hex_str(s1), b = mpi::from_hex_str(s2);
14 1123896 auto [q, r] = divmod(a, b);
15 1123896 fout << q.to_hex_str() << " " << r.to_hex_str() << '\n';
16 1123896 }
17 27 return 0;
18 27 }
19