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:终于AC了,但是不明白,为什么用cin,cout,超时,用scanf,printf,就能AC

Posted by guoshi3 at 2008-07-07 19:04:04 on Problem 1182
In Reply To:终于AC了,但是不明白,为什么用cin,cout,超时,用scanf,printf,就能AC Posted by:wanghaishanren at 2008-04-30 19:38:39
> 终于AC了,但是不明白,为什么用cin,cout,超时,用scanf,printf,就能AC
用流会慢很多很多很多。那天在北航做那个什么银河大战的那个,也是并差集。我知道cin费时间已经把大部分都改成scanf、printf了。就落了个读那个'M','C',我用的cin,结果超时,10s的题啊那是,后来改成scanf,就1s过了

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