会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
stay hungry,stay foolish
博客园
首页
新随笔
联系
管理
2014年6月7日
Codeforces Round #14 D. Two Paths(求树上两条不相交的路径的乘积最大值)
摘要: 题目链接:http://codeforces.com/problemset/problem/14/D思路:直接枚举每一天路径的两端,然后求以每一端为树根的树上最长路径,然后相乘就可以了。#include #include #include #include #include #define RE...
阅读全文
posted @ 2014-06-07 20:49 ihge2k
阅读(682)
评论(0)
推荐(0)
公告