Created
April 30, 2020 07:56
-
-
Save sunprinceS/20a48fa5abbfddcc333719881a8065d9 to your computer and use it in GitHub Desktop.
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
snippet my_template | |
#pragma GCC optimize ("O2") | |
#include<bits/stdc++.h> | |
#include<unistd.h> | |
using namespace std; | |
#define ALL(x) begin(x),end(x) | |
#define IOS ios_base::sync_with_stdio(0); cin.tie(0) | |
//freopen(name".in", "r", stdin); | |
//freopen(name".out", "w", stdout); | |
template<typename A, typename B> | |
ostream& operator <<(ostream &s, const pair<A,B> &p) { | |
return s<<"("<<p.first<<","<<p.second<<")"; | |
} | |
template<typename T> | |
ostream& operator <<(ostream &s, const vector<T> &c) { | |
s<<"[ "; | |
for (auto it : c) s << it << " "; | |
s<<"]"; | |
return s; | |
} | |
int main(){ | |
${0} | |
} | |
snippet leetcode | |
#include<bits/stdc++.h> | |
using namespace std; | |
template<typename A, typename B> | |
ostream& operator <<(ostream &s, const pair<A,B> &p) { | |
return s<<"("<<p.first<<","<<p.second<<")"; | |
} | |
template<typename T> | |
ostream& operator <<(ostream &s, const vector<T> &c) { | |
s<<"[ "; | |
for (auto it : c) s << it << " "; | |
s<<"]"; | |
return s; | |
} | |
${0} | |
int main(){ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment