描述 Running a taxi station is not all that simple. Apart from the obvious demand for a centralised coordination of the cabs in order to pick up the customers calling to get a cab as soon as possible,
http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1023&judgeId=542658 叫做:GarsiaWachs算法 就是加入有 a,b,c a , b , c a,b,c三个先合并左边两个的代价是 2a+ab+c 2 a + a b + c 2a+ab+c,而先合并右边两个的代价是 a+2b+2c a +
http://acm.hdu.edu.cn/showproblem.php?pid=1023 牛人总结:http://yanpol.blog.163.com/blog/static/4817080620106184553824/ #include <stdio.h> int main() { int i,j,yu,temp,n,m,lenth; int s[101][60]; s[1][1