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

Re:一个奇葩的超时原因……

Posted by LonelyBanboo at 2017-04-01 15:24:07 on Problem 3469
In Reply To:一个奇葩的超时原因…… Posted by:lcsky at 2014-05-21 03:04:38
> Dinic当前弧优化,本地跑已经比未优化的时候快了N倍,比EK快了N倍,提交POJ了N次,都TM的超时……
> 
> 无比抓狂的时候,看到了这样一篇高质量的博客:http://www.cnblogs.com/zhsl/archive/2012/12/03/2800092.html
> 
> 发现代码相差很小,在本地跑比我的还慢些,当时就崩溃了……
> 
> 逐一替换,发现竟是这破事儿掉的链子:
> cin >> a >> b >> w;
> 改成
> scanf("%d%d%d",&a,&b,&w);
> 就3000ms过了……
> 
> 一整天时间啊,POJ你丫的要不要这样搞!?!

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