摘要: hash的应用包括两种,一种是整数方面一种是字符串方面。 整数: hdu1425: 水题,考虑将所有数据存到对应的hash数组,然后倒叙查找输出即可。考虑负数处理方式。 #include<bits/stdc++.h> using namespace std; int h[1000005]; //直接 阅读全文
posted @ 2017-04-15 16:56 Yvettey 阅读(176) 评论(0) 推荐(0) 编辑