Skip to content

Instantly share code, notes, and snippets.

@catupper
catupper / Treap.cpp
Last active March 21, 2023 14:05
Solve AOJ 1508 with Treap
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
const int INF = 1 << 30;
struct Node{
Node *left, *right, *parent;