fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4. const int Mod=998244353;
  5. const ll INF = -10000000000000;
  6.  
  7. void solve() {
  8. int n;
  9. cin >> n;
  10. string s="aeiou";
  11. if(n<=5){
  12. for(int i=0;i<n;i++) cout << s[i];
  13. cout << '\n';
  14. return;
  15. }
  16. int k=(n+4)/5;
  17. int m=n/5;
  18. for(int i=0;i<k;i++) cout << 'a';
  19. for(int i=0;i<4;i++)
  20. for(int j=0;j<m;j++) cout << s[i+1];
  21. cout << '\n';
  22. }
  23. int main(){
  24. ios::sync_with_stdio(false);
  25. cin.tie(nullptr);
  26.  
  27. int t;
  28. cin >> t;
  29. while (t--) solve();
  30.  
  31.  
  32. return 0;
  33. }
  34.  
Success #stdin #stdout 0s 5312KB
stdin
3
2
3
6
stdout
ae
aei
aaeiou