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 |
注意事项RE的注意一下是不是数组开小了 点最多100---->开个105够了 图最多50 * 50----> 开55*55够了 呃gets(s)代替getchar() 避免空格 还有如果用BFS遍历 记得及时剪枝(当所有点都到达时就退出) 不然容易MLE 爆内存 prim 和 krusal都行,稠密图建议prim 差不多70ms Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator