******************************* *** The hack uses generator *** ******************************* ** Command line arguments ** no arguments ** Generated test ** 1000 jgbyqpzrklajgvwhfdmh 881 meazuxjdyowcntuhaarr 718 hpypkqsuhenkppaldlxq 612 fpfgsedgdwtenbuejtua 23 pfvgetsnvostczsrufjh 371 lrsnipaeinjnuihzfahv 493 sutoqpjrilccickeyyao 685 ghjuksyvxtqjhptfuegw 667 rewnmafnkzsvxpuovyhp 637 ejhzzgctvqeypwni... ** Generator source ** #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef vector vi; typedef vector vs; typedef pair pii; #define sz(A) (int)(A).size() #define FOR(A,B) for(int A=0; A < (int) (B);A++) #define pb push_back #define all(x) x.begin() , x.end() int main() { srand(time(NULL)); int n = 1000; char s[21]; s[20] = '\0'; printf("%d\n", n); string ss[n]; FOR(i, 1000) { FOR(j,20) { s[j] = rand() % 26; s[j] += 'a'; } ss[i] = s; printf("%s %d\n", s, rand() % 1000 + 1); } int m = 100; printf("%d\n", m); FOR(i,m) printf("%d\n", rand()%100 + 1); cout << ss[ rand()%n ] << endl; return 0; }