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

为什么要 x%=m[i]/d 这句话啊?不然会溢出,比如这个数据

Posted by TAdashi at 2018-01-26 11:06:23 on Problem 2891 and last updated at 2018-01-26 11:07:00
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