Created
June 20, 2013 11:26
-
-
Save naoyat/5821991 to your computer and use it in GitHub Desktop.
TopCoder Arena用コードテンプレート
This file contains hidden or 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
#line $NEXTLINENUMBER$ "$FILENAME$" | |
#include <iostream> | |
#include <sstream> | |
#include <cstdio> | |
#include <cmath> | |
#include <cctype> | |
#include <algorithm> | |
#include <string> | |
#include <vector> | |
#include <deque> | |
#include <stack> | |
#include <queue> | |
#include <list> | |
#include <map> | |
#include <set> | |
#define NDEBUG | |
$BEGINCUT$ | |
#include "cout.h" | |
#undef NDEBUG | |
$ENDCUT$ | |
#include <cassert> | |
using namespace std; | |
typedef long long ll; | |
typedef vector<int> vi; | |
typedef vector<vector<int> > vvi; | |
typedef vector<string> vs; | |
typedef vector<long long> vll; | |
#define sz(a) int((a).size()) | |
#define pb push_back | |
#define FOR(var,from,to) for(int var=(from);var<=(to);++var) | |
#define rep(var,n) for(int var=0;var<(n);++var) | |
#define rep1(var,n) for(int var=1;var<=(n);++var) | |
#define all(c) (c).begin(),(c).end() | |
#define tr(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i) | |
#define found(s,e) ((s).find(e)!=(s).end()) | |
#define mset(arr,val) memset(arr,val,sizeof(arr)) | |
typedef pair<int,int> i_i; | |
typedef pair<ll,ll> ll_ll; | |
typedef pair<double,double> d_d; | |
typedef pair<int,pair<int,int> > i_ii; | |
#define cons(x,y) make_pair((x),(y)) | |
#define car(x) ((x).first) | |
#define cdr(x) ((x).second) | |
#define cadr(x) (x).second.first | |
#define cddr(x) (x).second.second | |
class $CLASSNAME$ { | |
public: | |
$RC$ $METHODNAME$($METHODPARMS$) { | |
} | |
}; | |
$TESTCODE$ | |
$BEGINCUT$ | |
/* | |
$PROBLEMDESC$ | |
*/ | |
$ENDCUT$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment