Files
luogu/P16053.cpp
T
2026-08-12 22:26:26 +08:00

20 lines
411 B
C++

#include <iostream>
using namespace std;
int main()
{
int n;
char word[15];
cin >> n;
for (int i = 1; i <= n; ++i)
{
int now = (i % 2) ? 1 : 6, half = i + 1 >> 1;
while (!(half % 26))
now++, half /= 26;
word[now] += 1, word[now] %= 26;
for (int i = 1; i <= 10; ++i)
cout << char(word[i] + 'a');
puts("");
}
return 0;
}