Advertisement
arfin97

Template C++ Simplified Updated 6.28.18

Jun 27th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.32 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define d(x)                cout << #x << " = " << (x) << endl;
  4. #define fr                  freopen("in.txt", "r", stdin);
  5. #define fw                  freopen("out.txt", "w", stdout);
  6. #define mem(x)              memset((x), 0, sizeof((x)));
  7. #define pb                  push_back
  8. #define LL                  long long
  9. #define fastIO              ios_base::sync_with_stdio(false)
  10. #define sf                  scanf
  11. #define pf                  printf
  12. #define SQR(x)              ((x)*(x))
  13. #define sc1(x)              scanf("%d", &x)
  14. #define sc2(x, y)           scanf("%d %d", &x, &y)
  15. #define sc3(x, y, z)        scanf("%d %d %d", &x, &y, &z)
  16. #define FOR(i, x, y)        for(int i=int(x); i<int(y); i++)
  17. #define ROF(i, x, y)        for(int i=int(x-1); i>=int(y); i--)
  18. #define all(c)              (c.begin(), c.end())
  19. #define unq(v)              sort(all(v)), (v).erase(unique(all(v)),v.end())
  20. #define siz 1000000
  21. #define EPSILON    (1.0E-8)
  22.  
  23. struct point{
  24.     int x;
  25.     int y;
  26. };
  27.  
  28. int main(){
  29.     #ifndef ONLINE_JUDGE
  30.         clock_t tStart = clock();
  31.         freopen("in.txt", "r", stdin);
  32.         freopen("out.txt", "w", stdout);
  33.     #endif
  34.  
  35.         //Write code here
  36.  
  37.     #ifndef ONLINE_JUDGE
  38.         printf("\n>>Time taken: %.10fs\n", (double) (clock() - tStart) / CLOCKS_PER_SEC);
  39.     #endif
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement