Agent 008 wrote a letter to the agent 009 with code, code used only 'a' - 'z' and ', ', '. ', '-', '_' this 30 characters, each character has a unique code is as follows: 'a'=0, "b"=1, "c"=2,... , 'z'=25, 'and'=26, '. '=27,' - '=28,' _ '=29 after receiving the password letter, agent 009, found himself the decoding machine broke down, unable to decode, agent 009 know encryption machine working process is as follows: first, put the letters by the original character is replaced by the corresponding code, get a set of integers p [0.. n - 1), then use the following formula is deduced another set of integers c [0.. n - 1] : [I]=c (p [I] + key - I) % 30, if the result is negative, then add 30, finally will c [0.. n - 1) is replaced by the corresponding characters, you get the password letter, the key of the formula is key, as an integer between 1 to 30, so he is going to write their own a decoding process to decode,
CodePudding user response:
This is to be continued?
CodePudding user response:
CodePudding user response:
And then, and then?
Below?
CodePudding user response:
CodePudding user response:
Then the agent is dead,
CodePudding user response:
CodePudding user response:
Hehe
CodePudding user response:
Skills to do a little algorithm,
CodePudding user response:
CodePudding user response: