yjjr's blog

Stay Hungry, Stay Foolish

Noip2015信息传递(洛谷2661)

标签:dfs,模拟 题目描述 有n个同学(编号为1到n)正在玩一个信息传递的游戏。在游戏里每人都有一个固定的信息传递对象,其中,编号为i的同学的信息传递对象是编号为Ti同学。 ...

Last mile of the way(noip2017模拟题)

小A从仓库里找出了一棵n个点的有根树,1号节点为这棵树的根,树上每个节点的权值为wi,大小为ai。 现在他心中产生了Q个疑问,每个疑问形如在x的子树里,选出一些大小和不超过s的节点(不...

Hdu6082度度熊与邪恶大魔王

HDU6082度度熊与邪恶大魔王 标签:DP,背包问题 http://www.sakurasake.icoc.me/nd.jsp?id=10 Time Limit: 200...

Hdu1754 i hate it

HDU1754 I Hate It 标签:线段树 http://www.sakurasake.icoc.me/nd.jsp?id=5#_np=2_327 Ti...

Hdu1698just a hook

HDU1698 Just a Hook 标签:线段树 http://www.sakurasake.icoc.me/nd.jsp?id=6#_np=2_327 Time ...

Hdu1394 minimum inversion number

HDU1394 Minimum Inversion Number 标签:线段树,树状数组 http://www.sakurasake.icoc.me/nd.jsp?id=7#_n...

Hdu1166敌兵布阵

http://www.sakurasake.icoc.me/nd.jsp?id=4#_np=2_327 HDU1166敌兵布阵 标签:线段树 Time Limit: 2...

Codeforces897b chtholly's request

标签:模拟,数学 题目 题面传送门 — Thanks a lot for today. — I experienced so many great things. — You gave...

Codeforces897a scarborough fair

标签:模拟 题目 题面传送门 Are you going to Scarborough Fair? Parsley, sage, rosemary and thyme. Remembe...

Codeforces896a nephren gives a riddle

标签:dfs 题目 题面传送门 What are you doing at the end of the world? Are you busy? Will you save us? N...


Page 26 / Total 46