Created
August 19, 2017 12:24
-
-
Save Hunachi/49e3ba92cf8fddcdf87f1eebe1e742b0 to your computer and use it in GitHub Desktop.
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 int long long | |
#define rep(a,b,c) for(int a=b;a<c;a++) | |
#define repm(a,b,c) for(int a=(b-1);a>=c;a--) | |
#define pb push_back | |
#define str string | |
#define sf(a) scanfs("%d",&a) | |
#define pf(a) printf("%d\n",a) | |
#define pb push_back | |
#define mp make_pair | |
#define Fi first | |
#define Se second | |
#define ALL(v) (v).begin(), (v).end() | |
#define clean(used) memset(used,false,sizeof(used)) | |
using namespace std; | |
static const double EPS = 1e-10; | |
static const int INF = 1e18 + 9; | |
static const int Mod = 1e9 + 7; | |
inline int replac(str s){double ans=0;rep(i,0,s.length()){ans+=(s[i]-'0')*pow(10,s.length()-i-1);}return (int)ans;} | |
inline string numstr(int m){str s="";while(m>0){char c;int a=m/10;if(a>0)a=m%(a*10);else a=m;c=(char)('0'+a);s+=c;m/=10;}str st="";for(int i=s.size()-1;i>=0;i--){st+=s[i];}return st;} | |
typedef vector<int> vi; | |
typedef pair<int,int> pii; | |
typedef vector<pii> vii; | |
typedef vector<pair<int,pii>> ipii; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment