Skip to content

Instantly share code, notes, and snippets.

@nekolinuxblog
Last active August 29, 2015 14:07
Show Gist options
  • Save nekolinuxblog/c2f61a36e085ffc7cf95 to your computer and use it in GitHub Desktop.
Save nekolinuxblog/c2f61a36e085ffc7cf95 to your computer and use it in GitHub Desktop.
greedのカスタマイズ
#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