mltang

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 3 4 5 6 7

2017年11月5日 #

摘要: 惊了,从别人那里偷了一个dfs序。世界真神奇 dfs序什么意思呢,就是对dfs走过的地方进行标序,每个节点建立一个 struct node{ int in,out; ......... }; 这个in就是你什么时候进入这个节点,out就是什么时候从这个节点出来,程序也很好实现,加个计数cnt就行了, 阅读全文
posted @ 2017-11-05 12:28 mltang 阅读(209) 评论(0) 推荐(0) 编辑

2017年10月31日 #

摘要: B. Nikita and string time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day Nikita foun 阅读全文
posted @ 2017-10-31 22:21 mltang 阅读(796) 评论(0) 推荐(0) 编辑

2017年10月26日 #

摘要: D. Make a Permutation! time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Make a Permuta 阅读全文
posted @ 2017-10-26 00:05 mltang 阅读(149) 评论(0) 推荐(0) 编辑

2017年10月24日 #

摘要: C. Qualification Rounds time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Qualification 阅读全文
posted @ 2017-10-24 20:10 mltang 阅读(307) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7