HDU - 5862 Counting Intersections——线段树+扫描线
#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>#include <vector>#include <map>using namespa