随笔分类 -  洛谷

摘要:就是秀一波操作辣 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];} 阅读全文
posted @ 2020-03-10 11:11 墨鳌 阅读(250) 评论(0) 推荐(0)
摘要:呵呵,题目都这么明确了,题解什么的,就不需要了吧! 和上一篇poj2104的题意一模一样,数据范围*2了而已,可以直接复制代码过去a掉 但是我还是兢兢业业的重新敲了一遍,种树这种事情要勤奋嘛! 介于昨天刚学,自是不能领悟Insert操作的精妙之处 故今天写代码时先建了一颗nlogn的空树,方便查找( 阅读全文
posted @ 2020-03-01 12:59 墨鳌 阅读(144) 评论(0) 推荐(0)
摘要:开O2,开O2,开O2 重要的事情说三遍 1 #include <set> 2 #include <map> 3 #include <cmath> 4 #include <queue> 5 #include <vector> 6 #include <cstdio> 7 #include <cstdl 阅读全文
posted @ 2020-02-17 19:37 墨鳌 阅读(155) 评论(0) 推荐(0)