andre_joy

导航

2012年7月22日

poj 2442

摘要: 地址:http://poj.org/problem?id=2442题意:m段序列,每个序列取一个数,求组成序列和最小的n个数。mark:最近刚接手的优先队列。代码:#include <stdio.h>#include <iostream>#include <stdlib.h>#include <queue>using namespace std;int a[2010], b[2010];int cmp(const void *a, const void *b){ return *(int *)a - *(int *)b;}int main(){ 阅读全文

posted @ 2012-07-22 10:13 andre_joy 阅读(107) 评论(0) 推荐(0) 编辑