摘要: Problem DescriptionThere is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times are as 阅读全文
posted @ 2014-02-19 17:19 AHU_树 阅读(292) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John has received a noise complaint from his neighbor, Farmer Bob, stating that his cows are making too much noise.FJ's N cows (1 #include #include using namespace std; int a[10000+10]; int main() { int n; scanf("%d", &n); for(int i = 0 ; i #include using namespac 阅读全文
posted @ 2014-02-19 15:42 AHU_树 阅读(226) 评论(0) 推荐(0) 编辑