<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>基础图论 on 111qqz's blog</title><link>https://111qqz.com/en/tags/%E5%9F%BA%E7%A1%80%E5%9B%BE%E8%AE%BA/</link><description>Recent content in 基础图论 on 111qqz's blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2015-2026 111qqz</copyright><lastBuildDate>Tue, 22 Mar 2016 10:28:04 +0000</lastBuildDate><atom:link href="https://111qqz.com/en/tags/%E5%9F%BA%E7%A1%80%E5%9B%BE%E8%AE%BA/index.xml" rel="self" type="application/rss+xml"/><item><title>codeforces #338 div2 B || 615B Longtail Hedgehog</title><link>https://111qqz.com/en/post/acm-icpc/2016/2016-03-22-cf615b/</link><pubDate>Tue, 22 Mar 2016 10:28:04 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2016/2016-03-22-cf615b/</guid><description>&lt;p&gt;&lt;a href="http://codeforces.com/contest/615/problem/B" target="_blank" rel="noreferrer"&gt;题目链接&lt;/a&gt;
题意：给出n个点，m条边，定义一条路径的价值为【路径长度*(路径终点的度)】，求最大价值。
思路：一月份的时候写过一个回溯。。。TLE22了。。。其实也能猜到是dp..但是无奈不会写。然而其实真的不难==
我们枚举路径的终点，dp[i]表示以点i为终点能得到的最长路径长度。&lt;/p&gt;</description></item></channel></rss>