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

模的时候可以优化

Posted by Iamjw at 2007-08-07 16:27:27 on Problem 3324
In Reply To:偶用java超时,直接算的,有什么方法吗 Posted by:superman2006 at 2007-08-07 16:09:21
x mod (11111)2         

可以写成 循环  (x >> 5) + (x & 11111)2        
直到x 的长度 <= 5

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