会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
html_11
博客园
首页
新随笔
联系
订阅
管理
2019年7月30日
BZOJ 2157 旅游 (树链剖分)
摘要: 题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=2157 这道题给出的是边权,所以我们要把它转换成点权。 题目要求操作: 1.查询景区u,v之间所有桥愉悦值的总和 2.查询景区u,v之间桥愉悦值的最大值 3.查询景区u,v之间桥愉悦值的最小
阅读全文
posted @ 2019-07-30 15:01 html_11
阅读(128)
评论(0)
推荐(0)
2019年7月28日
SPOJ QTREE3 Query on a tree again! (树链剖分)
摘要: 题目链接:https://vjudge.net/contest/314922#problem/B #include <cmath> #include <cstdio> #include <algorithm> #include <iostream> #include <cstring> #inclu
阅读全文
posted @ 2019-07-28 18:00 html_11
阅读(137)
评论(0)
推荐(0)
2019年7月25日
Codeforces 438D The Child and Sequence (线段树取模操作)
摘要: 题目链接:http://codeforces.com/problemset/problem/438/D #include <cmath> #include <cstdio> #include <algorithm> #include <iostream> #include <cstring> #in
阅读全文
posted @ 2019-07-25 11:38 html_11
阅读(161)
评论(0)
推荐(0)
2019年7月24日
HDU 2665 Kth number (主席树)
摘要: 题目链接:https://vjudge.net/contest/313769#problem/A #include <cmath> #include <cstdio> #include <algorithm> #include <iostream> #include <cstring> #inclu
阅读全文
posted @ 2019-07-24 11:29 html_11
阅读(80)
评论(0)
推荐(0)
2019年7月23日
HDU 2586 How far away ?(LCA裸题)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2586 #include<bits/stdc++.h> #define lson rt << 1, l, m #define rson rt << 1 | 1, m + 1, r using namesp
阅读全文
posted @ 2019-07-23 11:39 html_11
阅读(141)
评论(0)
推荐(0)
2019年6月5日
Codeforces Round #275 (Div. 1) B. Interesting Array (线段树)
摘要: 题目链接:http://codeforces.com/contest/482/problem/B 题意:给定一个长度为n个序列,要求满足m个条件:[L,R]区间内的异或和为x #include <iostream> #include <cstring> #include <algorithm> #i
阅读全文
posted @ 2019-06-05 22:06 html_11
阅读(156)
评论(0)
推荐(0)
Codeforces Round #563 (Div. 2)
摘要: 题目链接:http://codeforces.com/contest/1174 A. Ehab Fails to Be Thanos 题意:给定一个长度为2n的数组a。有没有可能重新排序,使前n个元素的和不等于后n个元素的和? 思路:把数组a从小到大排好序,前n个元素和与后n个元素和不相等则一定存在
阅读全文
posted @ 2019-06-05 16:58 html_11
阅读(414)
评论(0)
推荐(0)
2019年6月2日
JDBC (本机Oracle连接)
摘要: 本机连接Oracle流程: 首先,查看一下自己的计算机名: 进入Oracle配置文件Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN把host值修改为本机(只需修改host值) listenter.ora文件: # listener.ora Network C
阅读全文
posted @ 2019-06-02 23:19 html_11
阅读(630)
评论(0)
推荐(0)
Codeforces Round # 555 (Div. 3) F. Maximum Balanced Circle(思维)
摘要: 题目链接:http://codeforces.com/contest/1157/problem/F 题意:在含有n个元素的数组里选择元素,使得构成一个元素最多的环(环满足相邻元素差的绝对值<=1) 先处理集合里的元素,统计每个元素的出现次数,并且将集合排好序,去重。 因为构成一个这样的环一定是这样的
阅读全文
posted @ 2019-06-02 18:14 html_11
阅读(137)
评论(0)
推荐(0)
Codeforces Round # 555 (Div. 3) D. N tasks for K days (构造)
摘要: 题目链接:http://codeforces.com/contest/1157/problem/D 题意:给定N个任务,K天完成。a[i]为第k天完成的任务数量。a[i]满足条件:a[i] < a[i] <= 2 * a[i + 1] k天内能完成的最少任务数为1开始的等差数列:k * (k + 1
阅读全文
posted @ 2019-06-02 15:27 html_11
阅读(173)
评论(0)
推荐(0)
下一页
公告