Code Processor

http://gulfweed.starlancer.org/d/index.php?itemid=10

https://apps.topcoder.com/wiki/display/tc/How+to+install+The+Arena+plug-ins

CodeProcessorはver 2.0ではいけない。

#include <string>
#include <vector>
#include <algorithm>
#include <stack>
#include <queue>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <functional>
#include <sstream>
#include <complex>
using namespace std;
static const double EPS = 1e-5;
#define EQ(a,b) (abs((a)-(b))<EPS)

#define pb push_back
#define rep(i,n) for(int i = 0; i < n; i++)
#define re return
#define all(x) (x).begin(), (x).end()
#define mp make_pair

typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<string> vs;

template <class T, class L> bool for_all(T b, T e, L l) { int f = 1; for (T q = b; q != e; q++) { if (!l(q)) { f = 0; break; } } return f; }
template <class T, class L> bool there_exists(T b, T e, L l) { return !for_all(b, e, [l](T q) {return !l(q);}); }
class $CLASSNAME$ {

public:
    $RC$ $METHODNAME$($METHODPARMS$) {
        $RC$ result;
        return result;
    }

    $TESTCODE$
};

// BEGIN CUT HERE
int main() {
    $CLASSNAME$ ___test;
    ___test.run_test(-1);
}
// END CUT HERE

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>