//g++ -std=c++11 -Wall -O2 -o main.exe main.cpp //g++ -std=c++14 -Wall -O2 -o main.exe main.cpp #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define spc " " #define com ", " typedef long long ll; typedef long double ld; typedef pair p_ii; typedef tuple tup; //------------------------------------------------------------------------------ int main(){ int n; cin >> n; string s; srand(time(NULL)); for(int i = 0; i < n; i++){ s += 'a'; for(int i = 1; i <= 8; i++){ s += ('a' + rand() % 26); } s += (i == n - 1 ? 'n' : 'a'); cout << s << endl; s = ""; } return 0; }