#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include //xAOJ ///////// #define REP(i, x, n) for(int i = x; i < n; i++) #define rep(i,n) REP(i,0,n) #define P(p) cout<<(p)< ///////// typedef long long LL; typedef long double LD; typedef unsigned long long ULL; ///////// using namespace::std; ///////// ///////// unsigned long long get_hash(string s, unsigned long long a, unsigned long long b){ unsigned long long hash = 0; for(unsigned int i = 0; i < s.size(); i++){ hash = (hash * a + s[i]) % b; } return hash; } void solve(){ LL AA,BB; cin >> AA >> BB; map hhit; int maxlen = 10000; unsigned long long hvalue; map::iterator it; for(;;){ string str(maxlen,'a'); for(int i=0;i