Last active
December 30, 2017 03:07
-
-
Save zenito9970/2ad65e2ab844fdddad00 to your computer and use it in GitHub Desktop.
競プロ用C++コードテンプレート
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> | |
#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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
競プロ用C++コードテンプレート
個人用に使っている競プロ用テンプレ
PhraseExpressのテンプレートにする際は以下の変更を加える。
最初の行に
mainのコメント部に
を追加