Skip to content

Instantly share code, notes, and snippets.

@codexetreme
Last active April 29, 2017 08:03
Show Gist options
  • Save codexetreme/cb00dc55de6f118042bed32d87541339 to your computer and use it in GitHub Desktop.
Save codexetreme/cb00dc55de6f118042bed32d87541339 to your computer and use it in GitHub Desktop.
#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