跳到正文

剪贴板

剪贴板 2x6yme0n

原文
剪贴板信息

剪贴板信息

收录
更新

#include <bits/stdc++.h> // #define int ll using namespace std;

#define min(args…) min({args}) #define max(args…) max({args}) #define redirect(filename) freopen(#filename”.in”, “r”, stdin), freopen(#filename”.out”, “w”, stdout) #define all(container) (container).begin(), (container).end() #define r_all(container) (container).rbegin(), (container).rend() #define fastio ios::sync_with_stdio(false), cin.tie(0), cout.tie(0) #define pb push_back #define eb emplace_back #define mkp make_pair #define fi first #define se second #define RV ranges::views #define RG ranges #define LB lower_bound #define UB upper_bound

template<typename _Tp> class gpq : public priority_queue<_Tp, vector<_Tp>, greater<_Tp>> {}; using ll=int64_t; using ull=uint64_t; #if defined _WIN64 or not defined _WIN32 using i128=__int128; using u128=unsigned __int128; #endif using ld=long double; using vi=vector<int>; using vvi=vector<vi>; using pii=pair<int,int>; using vpi=vector<pii>; using tiii=tuple<int,int,int>; using ai3=array<int,3>; using ai4=array<int,4>; template<typename _T1,typename _T2> inline bool chkmin(_T1&x,const _T2&y){if(y<x)return x=y,1;else return 0;} template<typename _T1,typename _T2> inline bool chkmax(_T1&x,const _T2&y){if(y>x)return x=y,1;else return 0;}

constexpr bool MULTIPLE_TESTS = 0;

mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

void solve(int _Tid) { ; }

signed main() { // redirect(); auto _Tbe = chrono::steady_clock::now(); fastio; // precalc(); int T = 1; if constexpr (MULTIPLE_TESTS) cin >> T; for (int _ = 1; _ <= T; ++) solve(); auto _Ted = chrono::steady_clock::now(); cerr<<“Used time: “<<chrono::duration_castchrono::milliseconds(_Ted - _Tbe).count()<<“ms\n”; return 0; }