-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelpCPP.cpp
68 lines (59 loc) · 1.48 KB
/
helpCPP.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
57
58
59
60
61
62
63
64
65
66
67
68
#include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define f(i,a,b) for(auto i=a;i<b;i++)
#define fi(i,a,b,x) for(auto i=a;i<b;i=i+x)
#define fe(i,a,b) for(auto i=a;i<=b;i++)
#define fr(i,a,b) for(auto i=a;i>=b;i--)
#define loop(i, a) for(auto i=a.begin();i!=a.end();i++)
#define endl '\n'
#define sp '\t'
#define ll long long int
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define all(x) x.begin(), x.end()
#define clr(x) memset(x, 0, sizeof(x))
#define sortall(x) sort(all(x))
#define mod 1000000007
#define PI 3.1415926535897932384626
#define deb(x) cout<<#x<<"="<<x<<endl
#define deb2(x, y) cout<<#x<<" = "<<x<<","<<#y<<" = "<<y<<endl
using namespace std;
template <typename T>
void print(vector<T>& a, char sep)
{
for(auto i : a) { cout<<i<<sep; }
}
ll mod_opr(ll num)
{
return (num + mod) % mod;
}
template <typename T>
bool compare(T x, T y)
{
return x > y ? true : false;
}
int main()
{
// ONLINE_JUDGE
#ifndef rahulbordoloi
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdin);
#endif
// Code
//fast;
int arr[8] {3,5,6,8,9,2,4,1};
int i,j,k,n;
i =3, n= 8;
for(k = 1 ; k <= i-2; k++){
arr[n] = arr[2];
for(j = 1 ; j <= i-2; k++){
arr[j] = arr[j+3];
}
}
for(k = 1 ; k <= n-2; k++){
cout<<arr[k+2];
}
return 0;
}