摘要: Description The cows have reconstructed Farmer John's farm, with its N barns (1 <= N <= 150, number 1..N) after the terrible earthquake last May. The 阅读全文
posted @ 2016-06-10 23:36 ljh_2000 阅读(243) 评论(1) 推荐(0) 编辑
摘要: Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping 阅读全文
posted @ 2016-06-10 15:49 ljh_2000 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1、汽艇(Boat.cpp/c/pas)【问题描述】有 n 个人要去坐 1 汽艇,每个人单独坐汽艇的快乐程度是 Ci,每多一个人,他的快乐程度会减去 Di,请求出使快乐程度之和达到最大的方案。(假设汽艇的容量足够大)。【输入格式】输入文件共有 3 行:第1 行是一个整数 n;第2 行有n 个整数,依 阅读全文
posted @ 2016-06-10 14:01 ljh_2000 阅读(740) 评论(0) 推荐(0) 编辑