Created
February 14, 2016 14:31
-
-
Save PreSoichiSumi/d2bb98ce34ff667a5d3d to your computer and use it in GitHub Desktop.
Atcoder用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> | |
#include <X11/Intrinsic.h> | |
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <cmath> | |
#include <cstring> | |
#include <ctime> | |
#include <iostream> | |
#include <algorithm> | |
#include <set> | |
#include <vector> | |
#include <tuple> | |
#include <sstream> | |
#include <typeinfo> | |
#include <fstream> | |
#include <random> | |
#include <queue> | |
#include <deque> | |
#include <iterator> | |
#include <map> | |
using namespace std; | |
#define all(c) ((c).begin()), ((c).end()) | |
#define dump(c) cerr << "> " << #c << " = " << (c) << endl; | |
#define iter(c) __typeof((c).begin()) | |
#define tr(i, c) for (iter(c) i = (c).begin(); i != (c).end(); i++) | |
#define REP(i, a, b) for (int i = a; i < (int)(b); i++) | |
#define rep(i, n) REP(i, 0, n) | |
#define mp make_pair | |
#define fst first | |
#define snd second | |
#define pb push_back | |
typedef unsigned int uint; | |
typedef long long ll; | |
typedef unsigned long long ull; | |
typedef vector<int> vi; | |
typedef vector<ll> vll; | |
typedef vector<vll> vvll; | |
typedef vector<vi> vvi; | |
typedef vector<double> vd; | |
typedef vector<vd> vvd; | |
typedef vector<string> vs; | |
typedef pair<int, int> pii; | |
typedef pair<ll, ll> pll; | |
//const int INF = 1 << 29; | |
const ll INF= 1LL << 60; //1はint | |
const double EPS = 1e-10; | |
template<class T> | |
bool chmax(T &a, const T &b) { | |
if (a < b) { | |
a = b; | |
return true; | |
} | |
return false; | |
} | |
template<class T> | |
bool chmin(T &a, const T &b) { | |
if (b < a) { | |
a = b; | |
return true; | |
} | |
return false; | |
} | |
template<class T> | |
ll stoi(T &str){ | |
ll ret; | |
stringstream ss; | |
ss << str; | |
ss >> ret; | |
return ret; | |
} | |
template<class T> | |
string toString(T i) { | |
stringstream ss; | |
ss << i; | |
return ss.str(); | |
} | |
struct prepare { | |
prepare() { | |
cout.setf(ios::fixed, ios::floatfield); | |
cout.precision(8); | |
ios_base::sync_with_stdio(false); | |
} | |
} _prepare; | |
//priority_queueは最小をtopに持ってくる | |
class Edge{ | |
public: | |
int to,col; | |
ll weight; | |
bool operator<(const Edge& a)const{return weight<a.weight;} | |
Edge(){}; | |
Edge(int b,int c,ll t){to=b,col=c,weight=t;} | |
}; | |
int main(){ | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment