随笔分类 - 洛谷
摘要:就是秀一波操作辣 1 #include <iostream> 2 using namespace std; 3 const int N=1e3+20; 4 int ans[N],cnt=1; 5 struct heap{ 6 int a[N],n; 7 int top(){return a[1];}
阅读全文
摘要:呵呵,题目都这么明确了,题解什么的,就不需要了吧! 和上一篇poj2104的题意一模一样,数据范围*2了而已,可以直接复制代码过去a掉 但是我还是兢兢业业的重新敲了一遍,种树这种事情要勤奋嘛! 介于昨天刚学,自是不能领悟Insert操作的精妙之处 故今天写代码时先建了一颗nlogn的空树,方便查找(
阅读全文
摘要:开O2,开O2,开O2 重要的事情说三遍 1 #include <set> 2 #include <map> 3 #include <cmath> 4 #include <queue> 5 #include <vector> 6 #include <cstdio> 7 #include <cstdl
阅读全文

浙公网安备 33010602011771号