Last active
November 16, 2022 08:36
-
-
Save dharanad/b1cbb4ea541b1f0b9ef7630c93b5f1a5 to your computer and use it in GitHub Desktop.
C++ Competitive Programming Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
#include <ext/pb_ds/assoc_container.hpp> | |
#include <ext/pb_ds/tree_policy.hpp> | |
using namespace std; | |
using namespace __gnu_pbds; | |
#define rep(i,n) for (i = 0; i < n; ++i) | |
#define REP(i,k,n) for (i = k; i <= n; ++i) | |
#define REPR(i,k,n) for (i = k; i >= n; --i) | |
#define r(type,x) type x; cin>>x; | |
#define w(x) r(int, x) while(x--) | |
#define mk(arr,n,type) type *arr=new type[n]; | |
#define inrange(i, a, b)((i >= min(a, b)) && (i <= max(a, b))) | |
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); | |
#define fsb(index) (index & -index) | |
typedef long long ll; | |
typedef pair<int,int> pi; | |
typedef pair<long,long> pl; | |
typedef vector<int> vi; | |
typedef vector<pi> vpi; | |
typedef vector<pl> vpl; | |
typedef vector<vi> vvi; | |
typedef tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update> ordered_set; | |
const int mod = 1000000007; | |
int main() { | |
fast | |
#ifndef ONLINE_JUDGE | |
freopen("input.txt", "r", stdin); | |
freopen("output.txt", "w", stdout); | |
#endif | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment