test/cpv/library-checker-big_integer/addition_of_hex_big_integers.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/addition_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 | 24 | int main() { | |
| 8 | u32 t; | ||
| 9 | 24 | fin_uint >> t; | |
| 10 | 24 | strn s1, s2; | |
| 11 |
2/2✓ Branch 0 taken 201242 times.
✓ Branch 1 taken 24 times.
|
201266 | while (t--) { |
| 12 | 201242 | fin >> s1 >> s2; | |
| 13 |
2/4✓ Branch 1 taken 201242 times.
✗ Branch 2 not taken.
✓ Branch 6 taken 201242 times.
✗ Branch 7 not taken.
|
201242 | mpi a = mpi::from_hex_str(s1), b = mpi::from_hex_str(s2); |
| 14 | 201242 | fout << (a + b).to_hex_str() << '\n'; | |
| 15 | 201242 | } | |
| 16 | 24 | return 0; | |
| 17 | 24 | } | |
| 18 |