11/*
22 * .__ .__ __ __ .__ ░▒▓███████▓▒░░▒▓████████▓▒░▒▓███████▓▒░░▒▓█▓▒░░▒▓█▓▒░
3- * | | |__| | __ ____ ___________________ ____ _____/ |_| |__ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
4- * | | | | |/ // __ \ / ___/\____ \_ __ \/ _ \ _/ __ \ __\ | \ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
5- * | |_| | <\ ___/ \___ \ | |_> > | \( <_> ) \ ___/| | | Y \ ░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓████████▓▒░
6- * |____/__|__|_ \\___ >____ >| __/|__| \____/ /\ \___ >__| |___| / ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░
3+ * | | |__| | __ ____ ___________________ ____ _____/ |_| |__ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
4+ * | | | | |/ // __ \ / ___/\____ \_ __ \/ _ \ _/ __ \ __\ | \ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
5+ * | |_| | <\ ___/ \___ \ | |_> > | \( <_> ) \ ___/| | | Y \ ░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓████████▓▒░
6+ * |____/__|__|_ \\___ >____ >| __/|__| \____/ /\ \___ >__| |___| / ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░
77 * \/ \/ \/ |__| \/ \/ \/ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░
88 * ░▒▓████████▓▒░▒▓████████▓▒░▒▓████████▓▒░ ░▒▓█▓▒░
99*/
4242#include < map>
4343#include < numeric>
4444#include < queue>
45- #include < assert.h >
45+ #include < cassert >
4646#include < string>
4747#include < sstream>
4848#include < bitset>
49+ #include < iomanip>
4950
5051// <========== NAMESPACES ==========>
5152
@@ -58,6 +59,7 @@ using namespace std;
5859#define pb push_back
5960#define mp make_pair
6061#define all (n ) (n).begin(), (n).end()
62+ #define rall (n ) (n).rbegin(), (n).rend()
6163#define elif else if
6264#define flag bool f = 0 ;
6365#define SVap swap /* the most Essential Define from YuriyKap */
@@ -73,6 +75,8 @@ using namespace std;
7375#define itn int
7476#define for9int for (int
7577#define svap SVap
78+ #define breakl break
79+ #define continuel continue
7680
7781// <========== APPCONSTNS ==========>
7882
@@ -102,8 +106,8 @@ using vvb = vector<vb>;
102106using pii = pair<int , int >;
103107using pdi = pair<double , int >;
104108using pipii = pair<int , pii>;
105- using tiii = Trip<int , int , int > ;
106- using vpii = vector < pii > ;
109+ using tiii = Trip<int , int , int >;
110+ using vpii = vector < pii >;
107111using vpdi = vector < pdi >;
108112using vpipii = vector < pipii >;
109113using vvpii = vector < vpii >;
@@ -121,6 +125,7 @@ using mapsi = map<string, int>;
121125using mib = map<int , bool >;
122126using mipii = map<int , pii>;
123127using mitiii = map<int , tiii>;
128+ using mpiivpii = map<pii, vpii>;
124129using misi = map<int , si>;
125130using mivi = map<int , vi>;
126131using qi = /* not BenQi */ queue<int >;
@@ -189,7 +194,7 @@ inline namespace Input {
189194 while (isdigit (ch = next_char ())) { x = x * 10 + (ch - ' 0' ); }
190195 return x * sgn;
191196 }
192- }
197+ } // namespace Input
193198inline namespace Output {
194199 char buf[BUF_SZ];
195200 int pos;
@@ -239,7 +244,7 @@ template<class _T1> istream& operator>>(istream& is, vector<_T1>& vec) {
239244}
240245template <class _T1 > ostream& operator <<(ostream& os, vector<_T1>& vec) {
241246 for (int i = 0 ; i < vec.sz ; i++) {
242- os << vec[i] <<' ' ;
247+ os << vec[i] << ' ' ;
243248 }
244249 return os;
245250}
@@ -261,6 +266,8 @@ namespace CompilerTests {
261266signed main ()
262267{
263268 srand (time (NULL ));
269+ ios::sync_with_stdio (false );
270+ cin.tie (0 ); cout.tie (0 );
264271 bool multiTestEnabled = false ;
265272 int t = (multiTestEnabled ? xin () : 1 );
266273 while (t--)CompilerTests::helloWorld ();
@@ -269,15 +276,15 @@ signed main()
269276// <========== NEARTOMORW ==========>
270277
271278/*
272- * /$$
279+ * /$$
273280 * /$$$$$$ /$$ /$$ /$$$$$$$$ /$$$$$$ /$$$$$$$ ^
274281 * /$$__ $$ | $$$ | $$| $$_____/ /$$__ $$| $$__ $$ /|\
275282 * | $$ \__/ | $$$$| $$| $$ | $$ \ $$| $$ \ $$ / | \
276283 * | $$$$$$ | $$ $$ $$| $$$$$ | $$$$$$$$| $$$$$$$/ |
277284 * \____ $$ | $$ $$$$| $$__/ | $$__ $$| $$__ $$ |
278285 * /$$ \ $$ | $$\ $$$| $$ | $$ | $$| $$ \ $$ |
279286 * | $$$$$$/ | $$ \ $$| $$$$$$$$| $$ | $$| $$ | $$ |
280- * \_ $$_/ |__/ \__/|________/|__/ |__/|__/ |__/ |
281- * \__/
282-
287+ * \_ $$_/ |__/ \__/|________/|__/ |__/|__/ |__/ |
288+ * \__/
289+
283290*/
0 commit comments