摘要:
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 阅读全文
摘要:
Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping 阅读全文
摘要:
1、汽艇(Boat.cpp/c/pas)【问题描述】有 n 个人要去坐 1 汽艇,每个人单独坐汽艇的快乐程度是 Ci,每多一个人,他的快乐程度会减去 Di,请求出使快乐程度之和达到最大的方案。(假设汽艇的容量足够大)。【输入格式】输入文件共有 3 行:第1 行是一个整数 n;第2 行有n 个整数,依 阅读全文