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

可以用逆元,注意上面楼主说的处理不可逆时用变换取模。另外模运算貌似比减法运算优先。

Posted by _paul_zhou at 2017-08-28 15:49:10 on Problem 1845
base-1 %mod!=0 --》wrong answer
(base-1 )%mod!=0 --》accepted

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