摘要:
CF620E New Year Tree "洛谷评测传送门" 题目描述 The New Year holidays are over, but Resha doesn't want to throw away the New Year tree. He invited his best friend 阅读全文
posted @ 2019-10-29 15:14
Seaway-Fu
阅读(238)
评论(0)
推荐(1)
摘要:
浅谈DFS序 本篇随笔简要讲解一下信息学奥林匹克竞赛中有关树的DFS序的相关内容。 DFS序的概念 先来上张图: 树的DFS序列,也就是树的深搜序,它的概念是:树的每一个节点在深度优先遍历中进出栈的时间序列。 树的DFS序,简单来讲就是对树从根开始进行深搜,按搜到的时间顺序把所有节点排队。 就比如上 阅读全文
posted @ 2019-10-29 12:43
Seaway-Fu
阅读(2684)
评论(6)
推荐(4)
摘要:
CF837D Round Subset "洛谷评测传送门" 题目描述 Let's call the roundness of the number the number of zeros to which it ends. You have an array of n n numbers. You 阅读全文
posted @ 2019-10-29 11:03
Seaway-Fu
阅读(257)
评论(0)
推荐(0)
摘要:
CF1065F Up and Down the Tree "洛谷评测传送门" 题目描述 You are given a tree with n n vertices; its root is vertex 11 . Also there is a token, initially placed in 阅读全文
posted @ 2019-10-29 10:29
Seaway-Fu
阅读(222)
评论(0)
推荐(0)

浙公网安备 33010602011771号