Skip to content

Instantly share code, notes, and snippets.

View lakshith-403's full-sized avatar

Lakshith Nishshanke lakshith-403

View GitHub Profile
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define what_is(a) cout << #a << " is " << a << "\n"
#define checker(a) cout << "checker reached " << a << "\n"
inline void io(){
ios_base::sync_with_stdio(false);
#include <bits/stdc++.h>
using namespace std;
struct subset{int parent,rank;};
struct edge{int u,v,w;};
bool comp(edge a,edge b){
return a.w < b.w;
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define f first
#define s second
#define what_is(a) cout << #a << " is " << a << "\n";
#define shit cout << "shit" << "\n";
#define pi pair<int,int>
/*
Solution for full marks uses binary search
*/
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define f first
#define s second