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:都是cin惹得祸,将其换为getchar()之后时间一下子降到了641ms; 开始慢的两个重要原因,1、cin;2、使用标准库中queue

Posted by happynp at 2008-06-22 14:48:00 on Problem 3322
In Reply To:都是cin惹得祸,将其换为getchar()之后时间一下子降到了641ms; 开始慢的两个重要原因,1、cin;2、使用标准库中queue Posted by:jlw686 at 2008-06-21 10:42:42
> 都是cin惹得祸,将其换为getchar()之后时间一下子降到了641ms;
> 开始慢的两个重要原因,1、cin;2、使用标准库中queue

memset居然也很耗时间,搞得双向bfs比单向的还要慢。

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