Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
终于AC,写几点需要注意的1、所给数据是邻接关系,需要转换为树 2、初始化时候需要对所有d[root][0...K] = A[root]赋值操作 提供一组数据: 1 1 1 输出:1 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator