test/cpv/library-checker-graph/chromatic_number.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/chromatic_number | ||
| 2 | #include "../../../src/graph/cnt/chrom_num/lib.hpp" | ||
| 3 | #include "../../../src/graph/ds/alist/lib.hpp" | ||
| 4 | |||
| 5 | using namespace tifa_libs; | ||
| 6 | 26 | int main() { | |
| 7 |
1/2✓ Branch 2 taken 26 times.
✗ Branch 3 not taken.
|
26 | std::cin.tie(nullptr)->std::ios::sync_with_stdio(false); |
| 8 | u32 n, m; | ||
| 9 |
2/4✓ Branch 1 taken 26 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 26 times.
✗ Branch 5 not taken.
|
26 | std::cin >> n >> m; |
| 10 | 26 | alist g(n); | |
| 11 |
2/2✓ Branch 0 taken 1538 times.
✓ Branch 1 taken 26 times.
|
1564 | for (u32 i = 0, u, v; i < m; ++i) { |
| 12 |
2/4✓ Branch 1 taken 1538 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1538 times.
✗ Branch 5 not taken.
|
1538 | std::cin >> u >> v; |
| 13 | 1538 | g.add_edge(u, v); | |
| 14 | } | ||
| 15 |
2/4✓ Branch 2 taken 26 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 26 times.
✗ Branch 6 not taken.
|
26 | std::cout << chrom_num(g) << '\n'; |
| 16 | 26 | return 0; | |
| 17 | 26 | } | |
| 18 |