Advertisement
arfin97

Template C++ Update: 19.9.2018

Sep 19th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.49 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 scb(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 EPSILON    (1.0E-8)
  21.     #define siz 100000
  22.  
  23.     int main(){
  24.         #ifndef ONLINE_JUDGE
  25.             clock_t tStart = clock();
  26.             freopen("in.txt", "r", stdin);
  27.             freopen("out.txt", "w", stdout);
  28.         #endif
  29.            
  30.         int a, b;
  31.         cin >> a >> b;
  32.         cout << a+b << endl;
  33.            
  34.         #ifndef ONLINE_JUDGE
  35.             printf("\n>>Time taken: %.10fs\n", (double) (clock() - tStart) / CLOCKS_PER_SEC);
  36.         #endif
  37.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement