Codeforces Round 735 (Div. 2)
D
Diane
Codeforces
1800
原题
← CE →
翻译中…

You are given an integer $n$. Find any string $s$ of length $n$ consisting only of English lowercase letters such that each non-empty substring of $s$ occurs in $s$ an odd number of times. If there are multiple such strings, output any. It can be shown that such string always exists under the given constraints.

翻译中…

A string $a$ is a substring of a string $b$ if $a$ can be obtained from $b$ by deletion of several (possibly, zero or all) characters from the beginning and several (possibly, zero or all) characters from the end.

翻译中…

Input

翻译中…

The first line contains a single integer $t$ ($1 \le t \le 500$) — the number of test cases.

翻译中…

The first line of each test case contains a single integer $n$ ($1 \le n \le 10^5$).

翻译中…

It is guaranteed that the sum of $n$ over all test cases doesn't exceed $3 \cdot 10^5$.

翻译中…

Output

翻译中…

For each test case, print a single line containing the string $s$. If there are multiple such strings, output any. It can be shown that such string always exists under the given constraints.

翻译中…

Note

翻译中…

In the first test case, each substring of "abc" occurs exactly once.

翻译中…

In the third test case, each substring of "bbcaabbba" occurs an odd number of times. In particular, "b" occurs $5$ times, "a" and "bb" occur $3$ times each, and each of the remaining substrings occurs exactly once.

翻译中…

样例

Input #1
4
3
5
9
19
Output #1
abc
diane
bbcaabbba
youarethecutestuwuu
InputCopy OutputCopy
题目信息
题号
1554D
时间限制
1 s
内存限制
256 MB
标签
构造
贪心
字符串

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。