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:小技巧从900+MS到500+MS。。

Posted by jeff126 at 2011-02-10 23:27:27 on Problem 1469
In Reply To:小技巧从900+MS到500+MS。。 Posted by:fjxmyzwd at 2010-12-05 13:44:53
> 不用cin也不用scanf...用这段。。
> inline void scan(long int &x)
> {
>   while(c=getchar(), c<'0'||c>'9');
>   x=c-'0';
>   while(c=getchar(), c>='0'&&c<='9') x=x*10+c-'0';
> }
> 快非常多。

表示同意...
从400+ms直接到47ms

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