# include # include # include typedef long long int Lint; extern "C" Lint hash(char* str) { Lint m = std::pow(10,7) + 7; int p = 97; Lint total = 0; for (int i=0; i