Repository navigation
Expand file tree
/
Copy pathTemplate.cpp
More file actions
155 lines (124 loc) · 3.09 KB
/
Copy pathTemplate.cpp
File metadata and controls
155 lines (124 loc) · 3.09 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"cmd":
["g++.exe", "-std=c++17", "${file}",
"-o", "${file_base_name}.exe",
"&&", "${file_base_name}.exe<inputf.in>outputf.out"],
"shell":
true,
"working_dir":"$file_path"
,
"selector":"source.cpp"
}
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
// using u128 = __int128;
#define FIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define pi acos(-1.0)
#define ll long long
#define int ll
#define EPS 0.00000001
#define mod 998244353
const int mx = 3e5+300;
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define mem(a, x) memset(a, x, sizeof(a))
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) (a * (b / gcd(a, b)))
#define vii vector<int>
#define graph vector<vii>
#define pii pair<int, int>
#define mii map<int, int>
#define vip vector<pair<int, int>>
#define djk priority_queue<pii, vip, greater<pii>>
#define pb push_back
#define nl '\n'
#define SP(x, y) fixed << setprecision((x)) << (y)
#define inf 0x3F3F3F3F
#define ff first
#define ss second
#define sz(s) s.size()
int fx[] = {0, 1, 0, -1};
int fy[] = { -1, 0, 1, 0};
template <class T>
inline T bitOn(T n, T pos)
{
return n | ((T)1 << pos);
}
template <class T>
inline T bitOff(T n, T pos)
{
return n & ~((T)1 << pos);
}
template <class T>
inline T isOn(T n, T pos)
{
return (bool)(n & ((T)1 << pos));
}
template <class T>
istream &operator>>(istream &is, vector<T> &input)
{
for (T &in : input)
{
is >> in;
}
return is;
}
template <class T>
istream &operator>>(istream &is, vector<pair<T,T>> &input)
{
for (auto &[i,n] : input)
{
is >> i>>n;
}
return is;
}
template <typename T>
ostream &operator<<(ostream &os, const vector<T> &vec)
{
for (auto &a : vec)
cout << a << " ";
return os;
}
ostream &operator<<(ostream &os, const vector<pair<int,int>> &vec)
{
for (auto &a : vec)
cout << a.ff<<" "<<a.ss << nl;
return os;
}
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
using namespace __gnu_pbds;
using namespace __gnu_cxx;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
template <typename T>
using ordered_multiset = tree<T, null_type, less_equal<T>, rb_tree_tag, tree_order_statistics_node_update>;
// order_of_key(?) : return count of values which is < ?
// find_by_order(?): access the ? index in set
//__builtin_popcount
// void sublime()
// {
// #ifndef ONLINE_JUDGE
// freopen("inputf.in", "r", stdin);
// freopen("outputf.out", "w", stdout);
// #endif
// }
///////////////////////////////////////////////////////////////////////////
//////////////////// DO NOT TOUCH BEFORE THIS LINE ////////////////////////
///////////////////////////////////////////////////////////////////////////
//NO FIO IN INTERACTIVE PROBLEM
//PRINT FFLUSH(STDOUT) AND NEW LINE
void solve()
{
}
signed main()
{
FIO;
solve();
}