Combothermal

Geothermal Template 6/4/23

Jun 4th, 2023
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. #include "bits/stdc++.h"
  2. #pragma GCC optimize ("O3")
  3. #pragma GCC target ("sse4")
  4.  
  5. using namespace std;
  6.  
  7. typedef long long ll;
  8. typedef long double ld;
  9. typedef complex<ld> cd;
  10.  
  11. typedef pair<int, int> pi;
  12. typedef pair<ll,ll> pl;
  13. typedef pair<ld,ld> pd;
  14.  
  15. typedef vector<int> vi;
  16. typedef vector<ld> vd;
  17. typedef vector<ll> vl;
  18. typedef vector<pi> vpi;
  19. typedef vector<pl> vpl;
  20. typedef vector<cd> vcd;
  21.  
  22. template<class T> using pq = priority_queue<T>;
  23. template<class T> using pqg = priority_queue<T, vector<T>, greater<T>>;
  24.  
  25. #define FOR(i, a, b) for (int i=a; i<(b); i++)
  26. #define F0R(i, a) for (int i=0; i<(a); i++)
  27. #define FORd(i,a,b) for (int i = (b)-1; i >= a; i--)
  28. #define F0Rd(i,a) for (int i = (a)-1; i >= 0; i--)
  29. #define trav(a,x) for (auto& a : x)
  30. #define uid(a, b) uniform_int_distribution<int>(a, b)(rng)
  31.  
  32. #define sz(x) (int)(x).size()
  33. #define mp make_pair
  34. #define pb push_back
  35. #define f first
  36. #define s second
  37. #define lb lower_bound
  38. #define ub upper_bound
  39. #define all(x) x.begin(), x.end()
  40. #define ins insert
  41.  
  42. template<class T> bool ckmin(T& a, const T& b) { return b < a ? a = b, 1 : 0; }
  43. template<class T> bool ckmax(T& a, const T& b) { return a < b ? a = b, 1 : 0; }
  44.  
  45. mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
  46.  
  47. void __print(int x) {cerr << x;}
  48. void __print(long x) {cerr << x;}
  49. void __print(long long x) {cerr << x;}
  50. void __print(unsigned x) {cerr << x;}
  51. void __print(unsigned long x) {cerr << x;}
  52. void __print(unsigned long long x) {cerr << x;}
  53. void __print(float x) {cerr << x;}
  54. void __print(double x) {cerr << x;}
  55. void __print(long double x) {cerr << x;}
  56. void __print(char x) {cerr << '\'' << x << '\'';}
  57. void __print(const char *x) {cerr << '\"' << x << '\"';}
  58. void __print(const string &x) {cerr << '\"' << x << '\"';}
  59. void __print(bool x) {cerr << (x ? "true" : "false");}
  60.  
  61. template<typename T, typename V>
  62. void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ", "; __print(x.second); cerr << '}';}
  63. template<typename T>
  64. void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? ", " : ""), __print(i); cerr << "}";}
  65. void _print() {cerr << "]\n";}
  66. template <typename T, typename... V>
  67. void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);}
  68. #ifdef DEBUG
  69. #define dbg(x...) cerr << "\e[91m"<<__func__<<":"<<__LINE__<<" [" << #x << "] = ["; _print(x); cerr << "\e[39m" << endl;
  70. #else
  71. #define dbg(x...)
  72. #endif
  73.  
  74.  
  75. const int MOD = 1000000007;
  76. const char nl = '\n';
  77. const int MX = 100001;
  78.  
  79. void solve() {
  80.  
  81.  
  82. }
  83.  
  84. int main() {
  85. ios_base::sync_with_stdio(0); cin.tie(0);
  86.  
  87. int T = 1;
  88. // cin >> T;
  89. while(T--) {
  90. solve();
  91. }
  92.  
  93. return 0;
  94. }
  95.  
  96.  
  97.  
  98.  
Advertisement
Add Comment
Please, Sign In to add comment