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
# inspired from https://www.instagram.com/reel/Cl4WkH9OPXc/?igshid=YmMyMTA2M2Y%3D | |
from matplotlib import pyplot as plt | |
import numpy as np | |
import random | |
from math import sqrt | |
def plot_points(points): | |
x = [p[0] for p in points] | |
y = [p[1] for p in points] | |
margin = 0.1 |
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> | |
using namespace std; | |
typedef long long ll; | |
typedef pair<int,int > pii; | |
template<typename T> | |
using V = vector<T>; | |
#define SYNC ios_base::sync_with_stdio(0);cin.tie(0); | |
#define rep(i,b) for(int i=0;i<b;i++) | |
#define repn(i,n) for(int i=1;i<=n;i++) | |
#define ALL(x) (x).begin(),(x).end() |