Skip to content

Repository files navigation

Competitive Programming

My Handles

CPP Template

#include<bits/stdc++.h>usingnamespacestd;
#defineendl"\n"
#defineINF (int) 9e18
#defineHELL (int) (1e9 + 7)
#defineintlonglong
#definedoublelongdouble
#defineuintunsignedlonglong
#definepii pair<int, int>
#definepb push_back
#definefs first
#definesc second
#definesize(aa) (int) aa.size()
#definedeb(xx) cerr << #xx << " => " << xx << "\n"
#definedebp(aa) cerr << #aa << " => " <<"("<<aa.fs<<", "<<aa.sc<<") " << "\n";
#definedeba(xx) cerr<<#xx<<"\n";for (auto z : xx) cerr << z << ""; cerr << "\n";
#definedebpa(xx) cerr<<#xx<<"\n";for (auto z : xx)cerr<<"("<<z.fs<<", "<<z.sc<<") "; cerr << "\n";
#definedebm(xx) cerr<<#xx<<"\n";for (auto z : xx){for(auto b : z) cerr << b << ""; cerr << "\n";}
#defineMat vector<vector<int>>
#definegetMat(aa, bb) vector<vector<int>>(aa, vector<int>(bb, 0))
#definefastio ios_base :: sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
#definepout cout << fixed << setprecision(10)
intfastpow(int a, int b, int m = HELL) { int res = 1; a %= m;
while (b > 0) { if (b & 1) res = (res * a) % m; a = (a * a) % m; b >>= 1; } return res;}
#defineinv(a) fastpow(a, HELL - 2)
#define_mul(a, b) ((a % HELL) * (b % HELL)) % HELL
#define_add(a, b) ((a % HELL) + (b % HELL)) % HELL
#define_sub(a, b) (((a % HELL) - (b % HELL)) % HELL + HELL) % HELL
#define_all(aa) aa.begin(), aa.end()
signedmain() { fastio;
return0;
}

About

No description, website, or topics provided.

Resources

Stars

20 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages