Skip to content

Instantly share code, notes, and snippets.

View lawrencefmm's full-sized avatar
🏠
Working from home

Lawrence Melo lawrencefmm

🏠
Working from home
  • Fortaleza, CE
View GitHub Profile
#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e3 + 10;
int cor[maxn], pr[maxn], br[maxn], dp[maxn][maxn], cp[maxn];
int n, m, comp;
vector<int> G[maxn];
void coloring(int x)
{
// Convex Hull O(n*log(n))
// por Lawrence Melo
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
struct point
{
int x, y;
// LCA using Segment Tree
// by Lawrence Melo
#include <bits/stdc++.h>
using namespace std;
const int maxn = 50100;
vector<int> G[maxn];
int cam[2*maxn], tree[4*maxn], d[maxn], num, f[maxn];