Skip to content

Instantly share code, notes, and snippets.

amirreza poorakhavan ar-pa

View GitHub Profile
View 600E.cpp
//God & me // ya mahdi adrekni
//@Shayan_Cheshmjahan: Oh my friend, congratulations!
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
const int maxn=1e5+12;
int n,col[maxn],sz[maxn],maxx,cnt[maxn];
long long ans[maxn],can;
bool badboy[maxn];
vector<int>g[maxn];
View PATULJCI.cpp
// God & me
// Together :)
#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 17, undef = maxn - 1;
int n, m, c;
vector<int> vec[maxn];
struct node{
int l, r, ans;
node(){ l = r = ans = undef; }
@ar-pa
ar-pa / BigInt.cpp
Last active Aug 3, 2020
bignum class for C++
View BigInt.cpp
// In the name of Allah.
// We're nothing and you're everything.
// Ya Ali!
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e2 + 14, lg = 15;
You can’t perform that action at this time.