test/cpv/library-checker-number_theory/primitive_root.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/primitive_root | ||
| 2 | #include "../../../src/nt/proot/uint/lib.hpp" | ||
| 3 | |||
| 4 | using namespace tifa_libs; | ||
| 5 | 14 | int main() { | |
| 6 |
1/2✓ Branch 2 taken 14 times.
✗ Branch 3 not taken.
|
14 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 7 | i64 q; | ||
| 8 |
1/2✓ Branch 1 taken 14 times.
✗ Branch 2 not taken.
|
14 | std::cin >> q; |
| 9 |
2/2✓ Branch 0 taken 1211 times.
✓ Branch 1 taken 14 times.
|
1225 | while (q--) { |
| 10 | u64 p; | ||
| 11 |
1/2✓ Branch 1 taken 1211 times.
✗ Branch 2 not taken.
|
1211 | std::cin >> p; |
| 12 |
2/4✓ Branch 2 taken 1211 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 1211 times.
✗ Branch 6 not taken.
|
1211 | std::cout << proot(p) << '\n'; |
| 13 | } | ||
| 14 | 14 | return 0; | |
| 15 | } | ||
| 16 |