摘要: #include <iostream>#include <map>#include <string>#include <cstdio>using namespace std;int main(){ map<int,string>mp; mp.insert(pair<int,string>(1,"GGGH")); mp.insert(map<int,string>::value_type(2,"FFF")); mp[3] = "UGUIHGUH"; pa 阅读全文
posted @ 2012-03-25 23:28 E_star 阅读(245) 评论(0) 推荐(0) 编辑
摘要: http://acm.sdut.edu.cn/web/contest_show.php?contest_id=1097A题:(字符串问题)就是给定字典。然后查找错误。分三种情况1:One letter is missing (e.g.,letteris writtenleter)or too much (e.g.,letteris writtenlettter).2:One letter is wrong (e.g.,letteris writtenketter)3:The order of two adjacent letters is wrong (e.g.,letteris writte 阅读全文
posted @ 2012-03-25 18:43 E_star 阅读(338) 评论(0) 推荐(0) 编辑