Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
为什么写成这样就超时……pc[(k*i)%n]=(cc[i]+i)%28;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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator