Skip to content

Instantly share code, notes, and snippets.

View jhtan's full-sized avatar

Jhonatan Castro jhtan

View GitHub Profile
#include <cstdio>
#include <algorithm>
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b) {
if(b == 0)
return a;
#include <cstdio>
#include <iostream>
#include <vector>
#include <queue>
#include <set>
using namespace std;
typedef pair<int, int> ii;
typedef vector<ii> vii;