
ACM-哈希
文章平均质量分 69
路小白_zZ
这个作者很懒,什么都没留下…
展开
-
uva 10391(哈希)
题意:给出一堆单词,输出其中能切开分成两个同样出现在这些单词里的单词,按字典序输出。题解:先读入,然后按长短排个序,然后在hash()里分出两个子串,判断是否出现过,如果是就放到另一个数组内,最后排序输出。#include #include #include #include #include #include using namespace std;const int原创 2014-08-26 10:01:47 · 791 阅读 · 0 评论 -
uva 188(哈希)
题意:题解:原创 2014-08-26 18:00:01 · 958 阅读 · 0 评论 -
uva 10282(哈希)
题意:题解:#include #include #include #include using namespace std;string str;map m;int n;int main() { int i; m.clear(); while (getline(cin, str)) { if (str == "") break; else {原创 2014-08-26 18:29:23 · 786 阅读 · 0 评论 -
uva 10125(哈希)
题意:题解:原创 2014-08-26 20:44:44 · 767 阅读 · 0 评论 -
uva 10887(哈希)
题意:把两次给出的单词题解:#include #include #include #include #include using namespace std;const int N = 1005;string str1[N], str2[N];map m;int main() { int t, n1, n2, cases = 1, ans; scanf原创 2014-08-26 23:41:39 · 883 阅读 · 0 评论 -
uva 10591(哈希)
题意:给一个数字,然后把zh题解:原创 2014-08-27 19:57:18 · 681 阅读 · 0 评论 -
uva 141(哈希)
题意:题解:#include #include #include #include #include #include using namespace std;const int N = 55;int n, row, col, ans1, ans2, flag;string keep;char m[N][N];char c;map vis;string has原创 2014-08-27 18:47:38 · 983 阅读 · 0 评论