1116 贪婪的送礼者
摘要:
花费了一下午做出了这道题,真有些伤人伤不起;题目描述在下面地址http://www.nputic.com/JudgeOnline/problem.php?id=1116题目不难理解,但我感觉真心不好做,处理关系时不会,通过这题对 map的用法用增加了一个层次;map 中输入和输出顺序不相同,所以利用vector来标记;#include<iostream>#include<vector># include <string># include <map>using namespace std;vector<string> vi;map&l 阅读全文
posted @ 2012-12-01 20:34 元点之始 阅读(259) 评论(0) 推荐(0) 编辑