-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path110B.cpp
56 lines (51 loc) · 1.15 KB
/
110B.cpp
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#define _USE_MATH_DEFINES
#include<iostream>
#include<vector>
#include<string>
#include<cstring>
#include<stack>
#include<queue>
#include<cstdio>
#include<set>
#include<unordered_set>
#include<cmath>
#include<algorithm>
#include<functional>
#include<iomanip>
#include<utility>
#include<cstdlib>
using namespace std;
typedef long long int lli;
typedef size_t idx;
#define vi vector<int>
#define vl vector<lli>
#define pb(n) push_back(n)
#define ln "\n"
#define sp ends
#define IT(x) x.begin(), x.end()
#define loop(start, end, incre) for(int i = start; i < end; i += incre)
#define newline cout << ln
const int MOD = 1000000007;
#define precision(n) cout << fixed << setprecision(n) // n places after dec.point
#define fastios ios_base::sync_with_stdio(false); cin.tie(0)
int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
int r = 100001;
vector<char> s(r, '0');
char ch = 'a';
for(int i = 0; i < r / 4; ++i){
if(s[i] != '0') continue;
for(int j = i; j < r; j += 4){
if(s[j] == '0') s[j] = ch;
}
++ch;
}
int n;
cin >> n;
for(int i = 0; i < n; ++i) cout << s[i];
newline;
return 0;
}