大赛将至,摆在你面前的是n道题目,第 i(1 ≤ i ≤ n) 道题目能提升 ai 点智力值,代码量为 bi KB,无聊值为 ci ,求至少提升m点智力值的情况下,所做题目代码量之和*无聊值之和最小为多少. Input 第一行两个整数n,m(0<n<=400) 接下来n行每行三个整数,ai,bi,ci(0<bi,ci<=1000,0<ai<=800). 0<m<=Σai<=800 Output 一个数,至少提升m点智力值的情况下,所做题目代码量之和*无…
Two Sum 21.4% Medium Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution. Example: Given nums = [2, 7, 11, 15], target = 9, Bec…