标签:algorithm space name ace nbsp clu mes hash first
#include<stdio.h>
#include<map>
#include<queue>
#include<algorithm>
using namespace std;
typedef long long ll;
pair<ll,ll>pp;
pair<ll,ll> Hash(ll a[21])
{
ll ans1=0,ans2=0;
for(ll i=0;i<21;i++)
ans1=(ans1*1000000013+a[i])%1000000007;
for(ll i=0;i<21;i++)
ans2=(ans2*1000000013+a[i])%1000000009;
pp.first=ans1;
pp.second=ans2;
return pp;
}
标签:algorithm space name ace nbsp clu mes hash first
原文地址:https://www.cnblogs.com/ccut-ry/p/9379235.html