Skip to content

Instantly share code, notes, and snippets.

@zenito9970
Last active December 30, 2017 03:07
Show Gist options
  • Save zenito9970/2ad65e2ab844fdddad00 to your computer and use it in GitHub Desktop.
Save zenito9970/2ad65e2ab844fdddad00 to your computer and use it in GitHub Desktop.
競プロ用C++コードテンプレート
#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,n) FOR(i,0,n)
#define repr(i,n) for(int i=(n)-1;0<=i;--i)
#define each(e,v) for(auto&& e:(v))
#define all(v) begin(v),end(v)
#define dump(x) cerr<<#x<<": "<<(x)<<endl
using namespace std;
using vint = vector<int>;
using ll = long long;
using vll = vector<ll>;
template <class T> void chmin(T& a, const T& b) { a = min(a, b); }
template <class T> void chmax(T& a, const T& b) { a = max(a, b); }
int main() {
//
return 0;
}
@zenito9970
Copy link
Author

競プロ用C++コードテンプレート

個人用に使っている競プロ用テンプレ
PhraseExpressのテンプレートにする際は以下の変更を加える。

最初の行に

// created: {#DATETIME}

mainのコメント部に

{#cursor}

を追加

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment