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:ciphercode[i]==27,那么题目是不是说plaincode[k*i mod n]-i等于27或-1???????????????

Posted by Vidic15 at 2009-04-25 16:50:15 on Problem 1317
In Reply To:ciphercode[i]==27,那么题目是不是说plaincode[k*i mod n]-i等于27或-1??????????????? Posted by:Vidic15 at 2009-04-25 16:19:58
终于过了!!其实当ciphercode[i]==27,plaincode[k*i mod n]-i的确是等于27或-1,但只要对公式研究一下就会发觉其实等于27或-1结果是一样的,所以不用考虑负数了,只需要
plaincode[(k*i)%n]=(ciphercode[i]+i)%28;就可以了...

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