STANAANDREY

cp template

Jun 16th, 2024
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.19 KB | None | 0 0
  1. /*
  2.      ॐ त्र्यम्बकं यजामहे सुगन्धिं पुष्टिवर्धनम् |
  3.      उर्वारुकमिव बन्धनान्मृत्योर्मुक्षीय माऽमृतात् ||
  4. */
  5.  
  6. #include <bits/stdc++.h>
  7.  
  8. using namespace std;
  9.  
  10. #define int            long long int
  11. #define F              first
  12. #define S              second
  13. #define pb             push_back
  14. #define si             set <int>
  15. #define vi             vector <int>
  16. #define pii            pair <int, int>
  17. #define vpi            vector <pii>
  18. #define vpp            vector <pair<int, pii>>
  19. #define mii            map <int, int>
  20. #define mpi            map <pii, int>
  21. #define spi            set <pii>
  22. #define endl           "\n"
  23. #define sz(x)          ((int) x.size())
  24. #define all(p)         p.begin(), p.end()
  25. #define double         long double
  26. #define que_max        priority_queue <int>
  27. #define que_min        priority_queue <int, vi, greater<int>>
  28. #define bug(...)       __f (#__VA_ARGS__, __VA_ARGS__)
  29. #define print(a)       for(auto x : a) cout << x << " "; cout << endl
  30. #define print1(a)      for(auto x : a) cout << x.F << " " << x.S << endl
  31. #define print2(a,x,y)  for(int i = x; i < y; i++) cout<< a[i]<< " "; cout << endl
  32.  
  33. inline int power(int a, int b)
  34. {
  35.     int x = 1;
  36.     while (b)
  37.     {
  38.         if (b & 1) x *= a;
  39.         a *= a;
  40.         b >>= 1;
  41.     }
  42.     return x;
  43. }
  44.  
  45. template <typename Arg1>
  46. void __f (const char* name, Arg1&& arg1) { cout << name << " : " << arg1 << endl; }
  47. template <typename Arg1, typename... Args>
  48. void __f (const char* names, Arg1&& arg1, Args&&... args)
  49. {
  50.     const char* comma = strchr (names + 1, ',');
  51.     cout.write (names, comma - names) << " : " << arg1 << " | "; __f (comma + 1, args...);
  52. }
  53.  
  54. const int N = 200005;
  55.  
  56. void solve() {
  57.     int n, m;
  58.     cin >> n >> m;
  59.     bug(n, m);
  60. }
  61.  
  62. int32_t main()
  63. {
  64.     ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  65.  
  66. #ifndef ONLINE_JUDGE
  67.     freopen("input.txt",  "r",  stdin);
  68.     freopen("output.txt", "w", stdout);
  69. #endif
  70.  
  71.     clock_t z = clock();
  72.  
  73.     int t = 1;
  74.     // cin >> t;
  75.     while (t--) solve();
  76.  
  77.     cerr << "Run Time : " << ((double)(clock() - z) / CLOCKS_PER_SEC);
  78.  
  79.     return 0;
  80. }
Add Comment
Please, Sign In to add comment