摘要: 这个可以用排序来做,先排重量, 再来排长度,然后最后就是要统计分成条链就行了,也就是被机器处理几次,下面是代码的实现 1 #include 2 #include 3 4 typedef struct stick{/*其中l为length, w为weight,visit为标记当前组是否已被排列出... 阅读全文
posted @ 2014-09-25 16:02 Howe_Young 阅读(227) 评论(0) 推荐(0) 编辑