个人记录[luoguP1768]天路题目地址:https://www.luogu.org/problemnew/show/P1768 一看题就是个分数规划... 然后就列式子 设∑Vi/∑Pi>=x,整理后得到x∑Pi-∑Vi<=0 二分x,找个负环即可