Poj 2376 贪心算法;

题意:有一些奶牛,每只奶牛负责一个时间段。问覆盖彻底部的时间段最少须要多少只奶牛。若不能所有覆盖,输出-1ios 样例输入:spa 4 10code 1 7string 3 6it 3 10io 6 10class 输出 :stream 2;cli #include <iostream> #include <cstdio> #include <string.h> #include <climits
相关文章
相关标签/搜索