会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xzhws's blog
不因虚度年华而悔恨,不因碌碌无为而羞耻。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
22
下一页
2019年4月5日
P1967 货车运输(倍增LCA,生成树)
摘要: 题目链接: https://www.luogu.org/problemnew/show/P1967 题目描述 A国有n座城市,编号从 1到n,城市之间有 m 条双向道路。每一条道路对车辆都有重量限制,简称限重。现在有 q 辆货车在运输货物, 司机们想知道每辆车在不超过车辆限重的情况下,最多能运多重的
阅读全文
posted @ 2019-04-05 09:32 xzhws
阅读(215)
评论(0)
推荐(0)
2019年3月31日
leetcode 421. Maximum XOR of Two Numbers in an Array Medium(trie树)
摘要: 题目链接 https://leetcode.com/problems/maximum-xor-of-two-numbers-in-a...
阅读全文
posted @ 2019-03-31 00:26 xzhws
阅读(50)
评论(0)
推荐(0)
2019年3月24日
CodeForces - 1141G Privatization of Roads in Treeland(二分,DFS)
摘要: 题目链接 https://codeforces.com/contest/1141/problem/G 题目大意: ...
阅读全文
posted @ 2019-03-24 10:14 xzhws
阅读(42)
评论(0)
推荐(0)
2019年3月22日
Codeforces Round #548 (Div. 2) C. Edgy Trees(并查集)
摘要: C. Edgy Trees time limit per test2 seconds memory limi...
阅读全文
posted @ 2019-03-22 11:27 xzhws
阅读(55)
评论(0)
推荐(0)
2019年3月20日
Codeforces Round #547 (Div. 3) E. Superhero Battle(二分)
摘要: E. Superhero Battle time limit per test 2 seconds ...
阅读全文
posted @ 2019-03-20 18:18 xzhws
阅读(48)
评论(0)
推荐(0)
2019年3月17日
P2986 [USACO10MAR]伟大的奶牛聚集(思维,dp)
摘要: 题目描述 Bessie is planning the annual Great Cow Gathering for cows all across the country and, of course, she would like to choose the most convenient lo
阅读全文
posted @ 2019-03-17 19:29 xzhws
阅读(279)
评论(0)
推荐(0)
P1273 有线电视网(树形动规,分组背包)
摘要: 题目链接: https://www.luogu.org/problemnew/show/P1273 题目描述 某收费有线电视网计划转播一场重要的足球比赛。他们的转播网和用户终端构成一棵树状结构,这棵树的根结点位于足球比赛的现场,树叶为各个用户终端,其他中转站为该树的内部节点。 从转播站到转播站以及从
阅读全文
posted @ 2019-03-17 13:50 xzhws
阅读(184)
评论(0)
推荐(0)
2019年3月16日
P1220 关路灯(区间规划)
摘要: 题目描述 某一村庄在一条路线上安装了n盏路灯,每盏灯的功率有大有小(即同一段时间内消耗的电量有多有少)。老张就住在这条路中间某一路灯旁,他有一项工作就是每天早上天亮时一盏一盏地关掉这些路灯。 为了给村里节省电费,老张记录下了每盏路灯的位置和功率,他每次关灯时也都是尽快地去关,但是老张不知道怎样去关灯
阅读全文
posted @ 2019-03-16 11:49 xzhws
阅读(268)
评论(0)
推荐(0)
2019年3月13日
CodeForces - 1136D Nastya Is Buying Lunch(模拟)
摘要: 题目链接: https://codeforces.com/contest/1136/problem/D 题目大意: n个人排成一行,...
阅读全文
posted @ 2019-03-13 15:59 xzhws
阅读(58)
评论(0)
推荐(0)
2019年3月12日
CodeForces - 1136C Nastya Is Transposing Matrices(数学)
摘要: 题目链接: https://codeforces.com/contest/1136/problem/C 题意: 给两个矩阵,矩阵每个...
阅读全文
posted @ 2019-03-12 11:52 xzhws
阅读(46)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
22
下一页
公告