-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA_Recovering_a_Small_String.cpp
More file actions
42 lines (37 loc) · 953 Bytes
/
Copy pathA_Recovering_a_Small_String.cpp
File metadata and controls
42 lines (37 loc) · 953 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
42
#include <bits/stdc++.h>
using namespace std;
#define yes {cout<<"YES"<<endl;}
#define no {cout<<"NO"<<endl;}
#define rep(i,a,b) for(int i = a; i < b; i++)
#define dep(x,a,b) for(int x = a; x >= b; --x)
#define vb v.begin()
#define ve v.end()
#define int long long
#define endl '\n';
const int MOD = 1e9 + 7;
int lcm(int a,int b) { return a/__gcd(a,b)*b; }
void solve(){
int n; cin>>n;
string ans;
rep(i,1,27){
rep(j,1,27){
rep(k,1,27){
if(i+j+k == n){
ans += char('a'+i-1);
ans += char('a'+j-1);
ans += char('a'+k-1);
cout<<ans<<endl;
return;
}
}
}
}
}
signed main(){
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t; cin >> t;
while(t--){
solve();
}
}