文件名称:PATA1053
介绍说明--下载内容均来自于网络,请自行研究使用
给定一个带有根R的非空树,并赋给每个树节点TI的权重WI。从R到L的路径的重量被定义为从R到任何叶节点L的路径上所有节点的权重之和。(Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to L is defined to be the sum of the weights of all the nodes along the path from R to any leaf node L.
Now given any weighted tree, you are supposed to find all the paths with their weights equal to a given number. For example, let's consider the tree showed in Figure 1: for each node, the upper number is the node ID which is a two-digit number, and the lower number is the weight of that node. Suppose that the given number is 24, then there exists 4 different paths which have the same given weight: {10 5 2 7}, {10 4 10}, {10 3 3 6 2} and {10 3 3 6 2}, which correspond to the red edges in Figure 1.)
Now given any weighted tree, you are supposed to find all the paths with their weights equal to a given number. For example, let's consider the tree showed in Figure 1: for each node, the upper number is the node ID which is a two-digit number, and the lower number is the weight of that node. Suppose that the given number is 24, then there exists 4 different paths which have the same given weight: {10 5 2 7}, {10 4 10}, {10 3 3 6 2} and {10 3 3 6 2}, which correspond to the red edges in Figure 1.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
PATA1053\.vs\PATA1053\v15\.suo | 37376 | 2017-12-02 |
PATA1053\.vs\PATA1053\v15\Browse.VC.db | 5783552 | 2017-12-02 |
PATA1053\.vs\PATA1053\v15\ipch\53ce2b74a4a191b2.ipch | 3604480 | 2017-12-02 |
PATA1053\.vs\PATA1053\v15\ipch\befcc7d53817e334.ipch | 3670016 | 2017-12-02 |
PATA1053\PATA1053\PATA1053.cpp | 1392 | 2017-12-02 |
PATA1053\PATA1053\PATA1053.vcxproj | 8091 | 2017-12-02 |
PATA1053\PATA1053\PATA1053.vcxproj.filters | 1315 | 2017-12-02 |
PATA1053\PATA1053\ReadMe.txt | 1512 | 2017-12-02 |
PATA1053\PATA1053\stdafx.cpp | 279 | 2017-12-02 |
PATA1053\PATA1053\stdafx.h | 284 | 2017-12-02 |
PATA1053\PATA1053\targetver.h | 296 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.log | 339 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.obj | 256822 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.pch | 3342336 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.tlog\CL.command.1.tlog | 1366 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.tlog\CL.read.1.tlog | 20650 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.tlog\CL.write.1.tlog | 816 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.tlog\link.command.1.tlog | 1200 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.tlog\link.read.1.tlog | 3424 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.tlog\link.write.1.tlog | 434 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\PATA1053.tlog\PATA1053.lastbuildstate | 189 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\stdafx.obj | 12164 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\vc141.idb | 338944 | 2017-12-02 |
PATA1053\PATA1053\x64\Debug\vc141.pdb | 438272 | 2017-12-02 |
PATA1053\PATA1053.sln | 1436 | 2017-12-02 |
PATA1053\x64\Debug\PATA1053.exe | 117248 | 2017-12-02 |
PATA1053\x64\Debug\PATA1053.ilk | 975356 | 2017-12-02 |
PATA1053\x64\Debug\PATA1053.pdb | 1208320 | 2017-12-02 |
PATA1053\.vs\PATA1053\v15\ipch | ||
PATA1053\PATA1053\x64\Debug\PATA1053.tlog | ||
PATA1053\.vs\PATA1053\v15 | ||
PATA1053\PATA1053\x64\Debug | ||
PATA1053\.vs\PATA1053 | ||
PATA1053\PATA1053\x64 | ||
PATA1053\x64\Debug | ||
PATA1053\.vs | ||
PATA1053\PATA1053 | ||
PATA1053\x64 | ||
PATA1053 |