摘要:注意不是优先队列,因为优先队列只能对队头进行操作,所以……单调队列,从队头到队尾所有都可以操作http://acm.hdu.edu.cn/showproblem.php?pid=4122一开始把时间,什么年月日,转化为时间小时(开始搞错WA了一次)后来使用单调队列,维护队列,使之到i 生产的最优,过期的出队列View Code #include<stdio.h>#include<string.h>#include<iostream>#include<algorithm>using namespace std;char Month[13][9]={
阅读全文
posted @ 2012-05-04 15:32