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

小技巧从900+MS到500+MS。。

Posted by fjxmyzwd at 2010-12-05 13:44:53 on Problem 1469
不用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';
}
快非常多。

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