Advertisement
Guest User

Template.cpp

a guest
May 29th, 2021
2,997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. #pragma GCC optimize ("O3")
  2. #pragma GCC target ("sse4")
  3.  
  4. #include <bits/stdc++.h>
  5.  
  6. using namespace std;
  7.  
  8. typedef long long ll;
  9. typedef long double ld;
  10. typedef complex<ld> cd;
  11.  
  12. typedef pair<int, int> pi;
  13. typedef pair<ll,ll> pl;
  14. typedef pair<ld,ld> pd;
  15.  
  16. typedef vector<int> vi;
  17. typedef vector<ld> vd;
  18. typedef vector<ll> vl;
  19. typedef vector<pi> vpi;
  20. typedef vector<pl> vpl;
  21. typedef vector<cd> vcd;
  22.  
  23. template<class T> using pq = priority_queue<T>;
  24. template<class T> using pqg = priority_queue<T, vector<T>, greater<T>>;
  25.  
  26. #define FOR(i, a, b) for (int i=a; i<(b); i++)
  27. #define F0R(i, a) for (int i=0; i<(a); i++)
  28. #define FORd(i,a,b) for (int i = (b)-1; i >= a; i--)
  29. #define F0Rd(i,a) for (int i = (a)-1; i >= 0; i--)
  30. #define trav(a,x) for (auto& a : x)
  31. #define uid(a, b) uniform_int_distribution<int>(a, b)(rng)
  32.  
  33. #define sz(x) (int)(x).size()
  34. #define mp make_pair
  35. #define pb push_back
  36. #define f first
  37. #define s second
  38. #define lb lower_bound
  39. #define ub upper_bound
  40. #define all(x) x.begin(), x.end()
  41. #define ins insert
  42.  
  43. template<class T> bool ckmin(T& a, const T& b) { return b < a ? a = b, 1 : 0; }
  44. template<class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; }
  45.  
  46. mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
  47.  
  48. const int MOD = 1000000007;
  49. const char nl = '\n';
  50. const int MX = 100001;
  51.  
  52. void solve() {
  53.  
  54.  
  55. }
  56.  
  57. int main() {
  58. cin.tie(0)->sync_with_stdio(0);
  59. cin.exceptions(cin.failbit);
  60.  
  61. int T = 1;
  62. // cin >> T;
  63. while(T--) {
  64. solve();
  65. }
  66.  
  67. return 0;
  68. }
  69.  
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement