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:先预处理n=2^k的所有状态的值,赞!!!!!好想法!!!

Posted by wzc1989 at 2008-12-07 22:14:17
In Reply To:Re:那d题,相乘中不要每次都取模,用long long读完后再取,时间由1267ms变为400ms左右,但不知第一怎搞的.. Posted by:Jaakques at 2008-12-07 18:54:32
> J?先预处理n=2^k的所有状态的值,每次询问o(logn),常数低会快很多。

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