【JZOJ A組】最佳團隊

Description Input Output Sample Input 1 2 1000 1 0 1 1000 1 Sample Output 0.001 Data Constraint 思路 看到這種最值問題,肯定要二分啦! 二分一個mid,滿足sigma(pi)/sigma(si)>=mid 發現不好處理,所以亂搞一下 移項!! sigma(pi)>=midsigma(si) sigma(
相關文章
相關標籤/搜索