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