Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

能不能看下代码啊,大牛,写不出来啊

Posted by AC123 at 2010-05-19 12:47:17 on Problem 3272
In Reply To:题目的意思和要注意的地方 Posted by:tzzhwj at 2008-11-13 19:59:47
> 题目意思:
> 由入度为0的点到目标点的所有路径中使用最频繁那条边总共使用的次数
> 
> 注意:
> (1)题目可以有重边
> (2)暴力枚举所有通向目标点的路径再统计边的重复数目,会超时
> (3) F[i] 为入度为0的点到i的路径条数
>       G[i] 为i到N的路径条数
> (4)求F的时候由编号小的点向编号大的点递推。G的时候由编号大的点向编号小的点递推。F[i]的值是指向它的所有结点的F值的和。G[i]的值是指向的所有结点的所有G值的和
> 
> 大家共同努力吧

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator