forked from Ritzing/Competitive_Coding
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.cpp
More file actions
55 lines (46 loc) · 1.47 KB
/
Copy pathtemplate.cpp
File metadata and controls
55 lines (46 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include <bits/stdc++.h>
using namespace std;
/* Template file for Online Algorithmic Competitions */
/* Typedefs */
/* Basic types */
typedef long long ll;
typedef unsigned long long ull;
/* STL containers */
typedef vector <int> vi;
typedef vector <ll> vll;
typedef pair <int,int> pii;
typedef pair <ll,ll> pll;
typedef vector < pii > vpii;
typedef vector < pll > vpll;
/* Macros */
/* Loops */
#define fl(i,a,b) for(int i(a);i<(b);i++)
#define rep(i,n) fl(i,0,n)
#define rfl(i,a,b) for(int i(a);i>=(b);i--)
/* Algorithmic functions */
#define srt(v) sort((v).begin(),(v).end())
/* STL container methods */
#define pb push_back
#define mp make_pair
/* String methods */
#define slen(s) s.length()
/* Shorthand notations */
#define F first
#define S second
#define MOD 1000000007
#define MAX 100010
/* Global variable declaration space */
/* Function definition space */
int main(){
/* Input & Output from files for easy testing
* These lines do not affect the submission on Online Judges.
* Comment them if input is to be taken from stdin and output is to be given to stdout.
* If input and output is to be taken from file, then:
* Change the input file address as the first parameter of the first freopen.
* Change the output file address as the first parameter of the second freopen. */
#ifndef ONLINE_JUDGE
freopen("/Users/sahilbansal/Desktop/input.txt","r",stdin);
freopen("/Users/sahilbansal/Desktop/output.txt","w",stdout);
#endif
return 0;
}