-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolution.cpp
More file actions
120 lines (103 loc) · 2.42 KB
/
solution.cpp
File metadata and controls
120 lines (103 loc) · 2.42 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
#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimize("unroll-loops")
using namespace std;
#ifdef LOCAL
#include "debug.h"
#endif
using ll = long long;
using ld = long double;
using pii = pair<ll, ll>;
#define pb push_back
#define ppb pop_back
#define F first
#define S second
#define nl '\n'
#define all(c) (c).begin(), (c).end()
#define sz(c) (ll)(c).size()
#define itr(i, a, b) for (ll i = a; i <= b; i++)
#define itrn(i, a, b) for (ll i = a; i >= b; i--)
#define iot(n) for (ll i = 0; i < n; i++)
inline void yes()
{
cout << "YES\n";
}
inline void no()
{
cout << "NO\n";
}
const ll MOD = (ll) 1e9 + 7;
const ll INF = (ll) 4e18;
/******************************I/O******************************/
#define fast_io \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
// ---------- INPUT ----------
template <typename T> void input(T &t)
{
cin >> t;
}
template <typename T, typename... Args> void input(T &t, Args &...args)
{
cin >> t;
input(args...);
}
// Array input (VLA / Pointer)
template <typename T> void input(T *arr, int n)
{
for (int i = 0; i < n; i++)
cin >> arr[i];
}
// ---------- OUTPUT ----------
template <typename T> void print(const T &t)
{
cout << t;
}
template <typename T, typename... Args> void print(const T &t, const Args &...args)
{
cout << t;
if constexpr (sizeof...(args) > 0)
cout << " ";
print(args...);
}
// Array output (VLA / Pointer)
template <typename T> void print(T *arr, int n)
{
for (int i = 0; i < n; i++)
{
cout << arr[i];
if (i + 1 < n)
cout << " ";
}
}
// Single variable with space
template <typename T> void printn(const T &t)
{
cout << t << " ";
}
/*****************************Utils*****************************/
template <typename T> bool chmax(T &a, T b)
{
return (b > a) ? (a = b, true) : false;
}
template <typename T> bool chmin(T &a, T b)
{
return (b < a) ? (a = b, true) : false;
}
/******************************End******************************/
void solve()
{
}
int main()
{
fast_io;
ll t = 1;
cin >> t;
while (t--)
{
solve();
cout << nl;
}
}