Skip to content

Instantly share code, notes, and snippets.

View niconiconi's full-sized avatar

Tiancheng Xie niconiconi

  • UC Berkeley
  • Berkeley, CA
View GitHub Profile
#include <map>
#include <ctime>
#include <cstdlib>
#include <cstdio>
using namespace std;
map<int, int> my_map;
int main()
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
const int MAXN = 1000010; //1e6
struct node {
int key, prio;
node *ch[2];
} base[MAXN], *top, *root, *null, nil;