Last active
April 29, 2017 08:03
-
-
Save codexetreme/cb00dc55de6f118042bed32d87541339 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
#include<bits/stdc++.h> | |
using namespace std; | |
template < typename T > | |
ostream &operator << ( ostream & os, const vector< T > &v ) { | |
os << "{"; | |
typename vector< T > :: const_iterator it; | |
for( it = v.begin(); it != v.end(); it++ ) { | |
if( it != v.begin() ) os << ", "; | |
os << *it; | |
} | |
return os << "}"; | |
} | |
typedef vector<int> vi; | |
#define first f | |
#define second s | |
#define deb(x) cerr << #x << " = " << x << endl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment