摘要: 题意: 知道了n 个基地的位置和m个炸弹的安放点,每个炸弹可以炸掉一行或一竖,炸掉的基地要从地图上去掉,对于每次操作输出该炸弹炸掉的基地个数。分析:用set集合容器,每去掉一个基地就从集合中删掉。#include <stdio.h>#include <string.h>#include <set>#include <map>#include <algorithm>using namespace std;typedef map<int,multiset<int> >line;map<int,multiset 阅读全文
posted @ 2012-11-05 21:33 'wind 阅读(166) 评论(0) 推荐(0) 编辑