摘要: 题目链接: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 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 本机连接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 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/contest/1157/problem/F 题意:在含有n个元素的数组里选择元素,使得构成一个元素最多的环(环满足相邻元素差的绝对值<=1) 先处理集合里的元素,统计每个元素的出现次数,并且将集合排好序,去重。 因为构成一个这样的环一定是这样的 阅读全文
posted @ 2019-06-02 18:14 html_11 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 题目链接: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 阅读(171) 评论(0) 推荐(0) 编辑