HDU1509 优先队列
摘要:
题意(需注意两点): 1.Note that the less priority value means the higher priority(标准优先队列) 2.the one comes first will be processed firs(当priority优先级相同是,先进先出) #include<string.h>#include<queue>#include<iostream>using namespace std;struct node //自定义优先队列结构体{ char str[100]; int par; int pri; ... 阅读全文
posted @ 2013-04-02 22:06 雨钝风轻 阅读(195) 评论(0) 推荐(0) 编辑