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:各种无解的情况

Posted by 110c at 2010-10-03 15:00:11 on Problem 3708
In Reply To:Re:Yes. corrected Posted by:ccut_acm01 at 2008-12-28 12:23:24
1,m和k的d进制长度不一样
2,不存在周期性,即从m[i](m的d进制形式)出发,不能经过一定次数回到m[i]
特殊情况下m,k的d进制形式一样,直接输出0。或者这几个余数的一样的,直接输出余数的大小
这里余数与周期数都是=<d的
3,扩展欧几里得的无解情况

不知道分析的对不对,请大牛指出~或者给几组测试数据

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