-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path57005649.cpp
More file actions
41 lines (41 loc) · 728 Bytes
/
57005649.cpp
File metadata and controls
41 lines (41 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
vector<char> str;
str.push_back('a');
str.push_back('e');
str.push_back('o');
str.push_back('i');
str.push_back('u');
int a,b;
for(int i=1;i<n;i++)
{
if(n%i==0)
{
a=max(i,n/i);
b=min(i,n/i);
if(a>=5 && b>=5)
break;
}
}
if(a<5 || b<5)
{
cout<<-1<<endl;
return 0;
}
for(int i=0;i<b-5;i++)
{
str.push_back('k');
}
for(int i=0;i<a;i++)
{
for(int j=0;j<str.size();j++)
cout<<str[(j+i)%str.size()];
//cout<<endl;
}
cout<<endl;
return 0;
}