我在本场的 NOIP2022 中,全场在开 T3,使用了数据分治的方法。 if(m==n-1){dfs(1,0);printf("%d %d\n",int(dp[1].f),int(dp[1].g));return 0;},我辈义不容辞!