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

为什么写成这样就超时……pc[(k*i)%n]=(cc[i]+i)%28;

Posted by sothink at 2004-10-03 00:23:07 on Problem 1317
In Reply To:原来是忘记了求余数,ft~ Posted by:sothink at 2004-10-02 23:53:44
s=cc[i]+i;
s=s%m;
j=(k*i)%n;
pc[j]=s;
这样写就15ms……faint

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