Advertisement
Eternoseeker

Cpp Template

Oct 1st, 2024
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.34 KB | Source Code | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { return os << '(' << p.first << ", " << p.second << ')'; }
  5. template<typename T_container, typename T = typename enable_if<!is_same<T_container, string>::value, typename T_container::value_type>::type> ostream& operator<<(ostream &os, const T_container &v) { os << '{'; string sep; for (const T &x : v) os << sep << x, sep = ", "; return os << '}'; }
  6. void dbg_out() { cerr << endl; }
  7. template<typename Head, typename... Tail> void dbg_out(Head H, Tail... T) { cerr << ' ' << H; dbg_out(T...); }
  8. #ifdef LOCAL
  9. #define dbg(...) cerr << "(" << #__VA_ARGS__ << "):", dbg_out(__VA_ARGS__)
  10. #else
  11. #define dbg(...)
  12. #endif
  13.  
  14. typedef long long ll;
  15. typedef pair<int, int> ii;
  16. typedef vector<int> vi;
  17. typedef vector<ii> vii;
  18.  
  19. #define ar array
  20. #define ld long double
  21. #define sza(x) ((int)x.size())
  22. #define all(a) (a).begin(), (a).end()
  23.  
  24. const int MAX_N = 1e5 + 5;
  25. const ll MOD = 1e9 + 7;
  26. const ll INF = 1e9;
  27. // const int LLINF = 4e18;
  28. const ld EPS = 1e-9;
  29.  
  30.  
  31. void solve() {
  32.    
  33. }
  34.  
  35. int main() {
  36.     ios_base::sync_with_stdio(0);
  37.     cin.tie(0); cout.tie(0);
  38.     int tc = 1;
  39.     // cin >> tc;
  40.     for (int t = 1; t <= tc; t++) {
  41.         // cout << "Case #" << t << ": ";
  42.         solve();
  43.     }
  44.     return 0;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement