#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; unsigned long long get_hash(string s, unsigned long long a, unsigned long long b){ unsigned long long hash = 0; for(int i = 0; i < s.size(); i++){ hash = (hash * a + s[i]) % b; } return hash; } string get_string(int len){ string s; for(int i=0;i>a>>b; if(b==1){ cout<<"a\nb"< hs; for(int i=0;i