Skip to content

Instantly share code, notes, and snippets.

@bjin
Created June 23, 2017 08:16
Show Gist options
  • Save bjin/4c8091f0b8635fc4efa4d4a28bd64182 to your computer and use it in GitHub Desktop.
Save bjin/4c8091f0b8635fc4efa4d4a28bd64182 to your computer and use it in GitHub Desktop.
moj templates
// {{{
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
// }}}
using namespace std;
struct $CLASSNAME$ {
$RC$ $METHODNAME$($METHODPARMS$);
};
$RC$ $CLASSNAME$::$METHODNAME$($METHODPARMS$) {
}
$BEGINCUT$
// {{{
$TESTCODE$
$DEFAULTMAIN$
// }}}
$ENDCUT$
import java.math.*;
import java.util.*;
import java.io.*;
public class $CLASSNAME$ {
public $RC$ $METHODNAME$($METHODPARMS$) {
}
void debug(Object...os) {
System.out.println(Arrays.deepToString(os));
}
$BEGINCUT$
// {{{
$DEFAULTMAIN$
// }}}
$ENDCUT$
}
$BEGINCUT$
// {{{
$TESTCODE$
// }}}
$ENDCUT$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment