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:为什么要 x%=m[i]/d 这句话啊?不然会溢出,比如这个数据

Posted by SCNU20152210056 at 2019-01-24 13:05:08 on Problem 2891
In Reply To:为什么要 x%=m[i]/d 这句话啊?不然会溢出,比如这个数据 Posted by:TAdashi at 2018-01-26 11:06:23
> x是exgcd求出来的那个
> d是gcd
> 不要这句话,会溢出
> 比如这个数据
> 2
> 158265022  128682266
> 8440 17480

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