5.散列-字符串hash

1. 只有大写字母

/* 1. 只适用于所有大写字母 且 字符串不能太长 */
#include <bits/stdc++.h>
using namespace std;
int hashlist(char s[],int len)
{
	int id=0