文章分类 -  ACM_STL

摘要:这一题一开始用map做,结果果断map不给力,没给过。 但是set可以靠运气过。学习了下set。#include <stdio.h>#include <set>#include <iostream>using namespace std;struct node{ int a; char c; bool operator < (const node t) const { return t.c>c; }};set<node> g; // 与优先队列类似.其实是一颗红黑树,用来判重比较好int main(){ node tmp; tmp.a 阅读全文
posted @ 2013-02-12 13:00 chenhuan001 阅读(335) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示