sukesh2000

CPP Template

Feb 24th, 2021
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.02 KB | None | 0 0
  1. /**************************
  2. *                         *
  3. *    Author: Sukesh       *
  4. *                         *
  5. ***************************/
  6. #include<bits/stdc++.h>
  7. #define FIO                 ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
  8. #define int                 long long int
  9. #define float               long double
  10. #define re(arr, n, m)       arr.resize(n, vll (m,0))
  11. #define inp1d(arr)          for(auto &it: arr) cin>>it
  12. #define inp1ds(arr, sum)    for(auto &it: arr){ cin>>it; sum+=it; }
  13. #define inp1dma(arr, m)     for(auto &it: arr){ cin>>it; m = max(m,it); }
  14. #define inp1dmi(arr, m)     for(auto &it: arr){ cin>>it; m = min(m,it); }
  15. #define inp2d(arr)          for(auto &it1: arr) for(auto &it2: it1) cin>>it2
  16. #define o1d(arr)            for(auto it: arr) cout<<it<<" ";
  17. #define o2d(arr)            for(auto it1: arr) { for(auto it2: it1) cout<<it2<<" "; cout<<endl; }
  18. #define fo(i,s,e)           for(int i=s;i<e;i++)
  19. #define fe(i,s,e)           for(int i=s;i<=e;i++)
  20. #define fi(i,e,s)           for(int i=e;i>=s;i--)
  21. #define vec(x)              vector<x>
  22. #define mp(x,y)             map<x, y>
  23. #define pr(x,y)             pair<x,y>
  24. #define set(x)              set<x>
  25. #define lb                  lower_bound
  26. #define ub                  upper_bound
  27. #define eb                  emplace_back
  28. #define all(arr)            arr.begin(),arr.end()
  29. #define S(arr)              arr.size()
  30. #define nl                  cout<<"\n"
  31. #define fr                  first
  32. #define se                  second
  33. #define contains(arr,x)     arr.find(x) != arr.end()
  34. #define INF                 (int)1e18
  35.  
  36. using namespace std;
  37. template<typename T,typename T1>T amax(T &a,T1 b){if(b>a)a=b;return a;}
  38. template<typename T,typename T1>T amin(T &a,T1 b){if(b<a)a=b;return a;}
  39.  
  40. void solve(){
  41.     FIO;
  42.    
  43.     return;
  44. }
  45.  
  46. signed main(){
  47.     FIO;
  48.     #ifndef ONLINE_JUDGE
  49.     freopen("in.txt","r",stdin);
  50.     freopen("out.txt","w",stdout);
  51.     #endif
  52.  
  53.     int t=1;
  54.     cin>>t;
  55.     while(t--)
  56.     solve();
  57.     return 0;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment