Subtask no. | Testdata Range | Constraints | Score |
---|---|---|---|
1 | 0 | 範例測資 | 0 / 0 |
2 | 0~10 | $N,Q \leq 500$ | 0 / 19 |
3 | 0~20, 71 | $N,Q\leq 3000$ | 0 / 20 |
4 | 4, 12, 20~30, 37~38, 46, 54, 61~62, 70, 73~75 | $|u_i-v_i|=1$ | 11 / 11 |
5 | 0, 31~50, 71~72 | $a_i,b_i$ 是一條邊的兩端 | 0 / 27 |
6 | 0~78 | 無其他限制 | 0 / 23 |