摘要: Problem 1124 - Football Coach Description It is not an easy job to be a coach of a football team. The season is almost over, only a few matches are le 阅读全文
posted @ 2017-05-11 13:51 PIPIBoss 阅读(362) 评论(0) 推荐(1) 编辑
摘要: 题目描述: 给定一个序列t1,t2,...,tn ,求一个递增序列z1<z2<...<zn , 使得R=|t1−z1|+|t2−z2|+...+|tn−zn| 的值最小。本题中,我们只需要求出这个最小的R值。 样例输入 7 9 4 8 20 14 15 18 样例输出 13 提示 所求的Z序列为6, 阅读全文
posted @ 2017-05-11 12:40 PIPIBoss 阅读(218) 评论(0) 推荐(1) 编辑