QOJ141 8 染色
Step 1
We realize that we can just send \(c \bmod 4\), then do 2 coloring.
Step 2
We realize that for all \(u\) with \(\deg(u) < 8\), the coloring is trivial. These 2 optimizations can get us below \(2.5 \times 10^5\).
We realize that we can just send \(c \bmod 4\), then do 2 coloring.
We realize that for all \(u\) with \(\deg(u) < 8\), the coloring is trivial. These 2 optimizations can get us below \(2.5 \times 10^5\).