Last active
August 29, 2015 14:07
-
-
Save nekolinuxblog/c2f61a36e085ffc7cf95 to your computer and use it in GitHub Desktop.
greedのカスタマイズ
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; | |
//conversion | |
//------------------------------------------ | |
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;} | |
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();} | |
//typedef | |
//------------------------------------------ | |
typedef long long LL; | |
//repetition | |
#define FOR(i,a,b) for(int i=(a);i<(b);++i) | |
#define REP(i,n) FOR(i,0,n) | |
// Let's solve problem here | |
//------------------------------------------ | |
class ${ClassName} { | |
public: | |
${Method.ReturnType} ${Method.Name}(${Method.Params}) { | |
return ${Method.ReturnType;zeroval}; | |
} | |
}; | |
${CutBegin} | |
${<TestCode} | |
${CutEnd} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment