Codeforces Round 972 (Div. 2)
A
Simple Palindrome
Codeforces
900
原题
←B1 →
翻译中…

Narek has to spend 2 hours with some 2-year-old kids at the kindergarten. He wants to teach them competitive programming, and their first lesson is about palindromes.

翻译中…

Narek found out that the kids only know the vowels of the English alphabet (the letters $\mathtt{a}$, $\mathtt{e}$, $\mathtt{i}$, $\mathtt{o}$, and $\mathtt{u}$), so Narek needs to make a string that consists of vowels only. After making the string, he'll ask the kids to count the number of subsequences that are palindromes. Narek wants to keep it simple, so he's looking for a string such that the amount of palindrome subsequences is minimal.

翻译中…

Help Narek find a string of length $n$, consisting of lowercase English vowels only (letters $\mathtt{a}$, $\mathtt{e}$, $\mathtt{i}$, $\mathtt{o}$, and $\mathtt{u}$), which minimizes the amount of palindrome$^{\dagger}$ subsequences$^{\ddagger}$ in it.

翻译中…

$^{\dagger}$ A string is called a palindrome if it reads the same from left to right and from right to left.

翻译中…

$^{\ddagger}$ String $t$ is a subsequence of string $s$ if $t$ can be obtained from $s$ by removing several (possibly, zero or all) characters from $s$ and concatenating the remaining ones, without changing their order. For example, $\mathtt{odocs}$ is a subsequence of $\texttt{c}{\color{red}{\texttt{od}}}\texttt{ef}{\color{red}{\texttt{o}}}\texttt{r}{\color{red}{\texttt{c}}}\texttt{e}{\color{red}{\texttt{s}}}$.

翻译中…

Input

翻译中…

The first line of the input contains a single integer $t$ ($1 \le t \le 100$) — the number of test cases. Subsequently, the description of each test case follows.

翻译中…

The only line of each test case contains a single integer $n$ ($1 \le n \le 100$) — the size of the string.

翻译中…

Output

翻译中…

For each test case, output any string of length $n$ that satisfies the above conditions.

翻译中…

Note

翻译中…

In the first example, $\texttt{uo}$ has only three palindrome subsequences: $\texttt{u}$, $\texttt{o}$, and the empty string. It can be shown that there is no better answer.

翻译中…

In the third example, $\texttt{oeiiua}$ has only eight palindrome subsequences: $\texttt{o}$, $\texttt{e}$, $\texttt{i}$, $\texttt{i}$, $\texttt{u}$, $\texttt{a}$, $\texttt{ii}$, and the empty string. It can be shown that there is no better answer.

翻译中…

样例

Input #1
3
2
3
6
Output #1
uo
iae
oeiiua
InputCopy OutputCopy
题目信息
题号
2005A
时间限制
1 s
内存限制
256 MB
标签
组合数学
构造
贪心
数学

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