欢迎来到起遇信息学
起遇信息学正处于上线筹建阶段,以下功能已全部开放免费体验: ✅ 完整题库浏览与代码提交评测(C / C++ / Python / Java 等) ✅ 入门到进阶的系列课程试读、作业与考试 ✅ AI 提示、AI 作业分析等智能助教功能 ✅ 赛事模拟与个人能力报告 ✅ 邮箱注册开放 ⏳ 付费课程订阅与微信/支付宝支付通道 ⏳ 手机号登录,微信扫码登录、微信公众号绑定 使用中如遇任何问题,欢迎通过页面底部 **"联系我们"** 与我们沟通。
CF2005A.Simple Palindrome
Simple Palindrome
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 a, e, i, o, and 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 , consisting of lowercase English vowels only (letters a, e, i, o, and u), which minimizes the amount of palindrome subsequences in it.
A string is called a palindrome if it reads the same from left to right and from right to left.
String is a subsequence of string if can be obtained from by removing several (possibly, zero or all) characters from and concatenating the remaining ones, without changing their order. For example, odocs is a subsequence of 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 () — the number of test cases. Subsequently, the description of each test case follows.
The only line of each test case contains a single integer () — the size of the string.
Output
For each test case, output any string of length that satisfies the above conditions.
Note
In the first example, uo has only three palindrome subsequences: u, o, and the empty string. It can be shown that there is no better answer.
In the third example, oeiiua has only eight palindrome subsequences: o, e, i, i, u, a, ii, and the empty string. It can be shown that there is no better answer.
Samples
3
2
3
6
uo
iae
oeiiua
在线编程 IDE
建议全屏模式获得最佳体验
| 进入全屏编程 | Alt+E |
| 递交评测 | Ctrl+Enter |
| 注释/取消注释 | Ctrl+/ |
| 缩放字体 | Ctrl+滚轮 |