会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Menteur_hxy
首页
新随笔
联系
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
24
下一页
2018年4月27日
[luogu P2590 ZJOI2008] 树的统计 (树链剖分)
摘要: 题目描述 一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w。我们将以下面的形式来要求你对这棵树完成一些操作:I. CHANGE u t : 把结点u的权值改为tII. QMAX u v: 询问从点u到点v的路径上的节点的最大权值III. QSUM u v:...
阅读全文
posted @ 2018-04-27 21:48 Menteur_hxy
阅读(123)
评论(0)
推荐(0)
2018年4月24日
[Libre 6282] 数列分块入门 6 (分块)
摘要: 原题:传送门code://By Menteur_Hxy#include#include#include#include#include#include#define ll long long#define f(a,b,c) for(int a=b;a'9' || c=...
阅读全文
posted @ 2018-04-24 18:29 Menteur_hxy
阅读(121)
评论(0)
推荐(0)
2018年4月19日
[luogu P1352] 没有上司的舞会 (树形dp)
摘要: 日常来道水题233 题目描述 某大学有N个职员,编号为1~N。他们之间有从属关系,也就是说他们的关系就像一棵以校长为根的树,父结点就是子结点的直接上司。现在有个周年庆宴会,宴会每邀请来一个职员都会增加一定的快乐指数Ri,但是呢,如果某个职员的上司来参加舞会了,那么这个...
阅读全文
posted @ 2018-04-19 16:43 Menteur_hxy
阅读(114)
评论(0)
推荐(0)
[IOI1998] Polygon (区间dp)
摘要: DescriptionPolygon is a game for one player that starts on a polygon with N vertices, like the one in Figure 1, where N=4. Each vertex...
阅读全文
posted @ 2018-04-19 16:22 Menteur_hxy
阅读(167)
评论(0)
推荐(0)
2018年4月17日
[Libre 6281] 数列分块入门 5 (分块)
摘要: 水一道入门分块qwq 题面:传送门 开方基本暴力。。 如果某一个区间全部都开成1或0就打上标记全部跳过就行了 因为一个数开上个四五六次就是1了所以复杂度能过233~code://By Menteur_Hxy#include#include#include#includ...
阅读全文
posted @ 2018-04-17 16:20 Menteur_hxy
阅读(177)
评论(0)
推荐(0)
[luogu P2756 ] 飞行员配对方案问题 (最大流)
摘要: 强行做裸题做了两个小时。。我果然太水了QAQ题目背景 第二次世界大战时期..题目描述 英国皇家空军从沦陷国征募了大量外籍飞行员。由皇家空军派出的每一架飞机都需要配备在航行技能和语言上能互相配合的2 名飞行员,其中1 名是英国飞行员,另1名是外籍飞行员。在众多的飞行员中...
阅读全文
posted @ 2018-04-17 15:39 Menteur_hxy
阅读(189)
评论(0)
推荐(0)
2018年4月14日
【LibreOJ 6280】 数列分块入门 4 (分块)
摘要: 题目:传送门听说用define会使代码简洁qwq code://By Menteur_Hxy#include#include#include#include#include#include#define ll long long#define f(A,B,C) for...
阅读全文
posted @ 2018-04-14 23:39 Menteur_hxy
阅读(107)
评论(0)
推荐(0)
【LibreOJ 6279】 数列分块入门 3 (分块)
摘要: 传送门code://By Menteur_Hxy#include#include#include#include#include#includeusing namespace std;int rd() { int x=0,fla=1; char c=' '; ...
阅读全文
posted @ 2018-04-14 23:36 Menteur_hxy
阅读(110)
评论(0)
推荐(0)
【模板】 素数、欧拉数、莫比乌斯函数小结
摘要: 二话不说上代码:(如果有错误欢迎指出)//By Menteur_Hxy#include#include#include#include#includeusing namespace std;int rd() { int x=0,fla=1; char c=' '...
阅读全文
posted @ 2018-04-14 15:19 Menteur_hxy
阅读(124)
评论(0)
推荐(0)
乘法逆元
摘要: spli Orz.. 乘法逆元定义若ax≡1modp" role="presentation" style="position: relative;">ax≡1modpax≡1modp,则称x" role="presentation" style="po...
阅读全文
posted @ 2018-04-14 12:18 Menteur_hxy
阅读(133)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
24
下一页
公告