随笔分类 -  STL

UVa12096 The SetStack Computer(STL)
摘要:题意 Background from Wikipedia: “Set theory is a branch of mathematics created principally by the German mathematician Georg Cantor at the end of the 19 阅读全文
posted @ 2017-01-29 14:03 cylcy 阅读(348) 评论(0) 推荐(0)
UVa1592 Database(STL)
摘要:题意 给出一个数据库进行查重。假如(x1,y1)=(x1,y2)且(x2,y1)=(x2,y1),即重复,不合格。 想法 参照白书 对于字符串,为了加快比较速度,可以使用map来分配整数值,从而加快比较速度。 先枚举两列,然后从上到下将每行的该两列两个表格加入map,可以通过map查重。 代码 cp 阅读全文
posted @ 2017-01-29 14:03 cylcy 阅读(183) 评论(0) 推荐(0)