test/cpv/library-checker-string/runenumerate.mints-ms.hashstr-hashstr2s.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #define AUTO_GENERATED | ||
| 2 | // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/runenumerate/ | ||
| 3 | #include "../../../src/io/fastin/lib.hpp" | ||
| 4 | #include "../../../src/io/fastout/lib.hpp" | ||
| 5 | #include "../../../src/str/run/hash/lib.hpp" | ||
| 6 | |||
| 7 | using namespace tifa_libs; | ||
| 8 | CEXP u32 MOD = 998244353; | ||
| 9 | |||
| 10 | #include "../../../src/math/ds/mint/ms/lib.hpp" | ||
| 11 | #include "../../../src/str/hash/substr2/lib.hpp" | ||
| 12 | |||
| 13 | using namespace tifa_libs; | ||
| 14 | using mint = mint_ms<MOD>; | ||
| 15 | using namespace tifa_libs; | ||
| 16 | using mint0 = mint_ms<998244353>; | ||
| 17 | using mint1 = mint_ms<1000000007>; | ||
| 18 | using hashstr = hash_substr2<mint0, mint1>; | ||
| 19 | |||
| 20 | 24 | int main() { | |
| 21 | 24 | strn s; | |
| 22 | 24 | tifa_libs::fin_uint >> s; | |
| 23 | 24 | auto res = tifa_libs::run_hash<hashstr>(s); | |
| 24 | 24 | tifa_libs::fout << res.size() << '\n'; | |
| 25 |
2/2✓ Branch 11 taken 352720 times.
✓ Branch 12 taken 24 times.
|
352744 | for (auto& [a, b, c] : res) tifa_libs::fout << a << ' ' << b << ' ' << c << '\n'; |
| 26 | 24 | return 0; | |
| 27 | 24 | } | |
| 28 |