Category: Programming Points: 400 Author: Description:
Decrypt Aldrich Killian City Map:
#Problem Statement Iron Man is inside city of Aldrich Killian. Iron Man has got hold of the city map, however, the city map is encrypted with a key. Without decryption of the city map, it is impossible to catch Aldrich Killian. As Aldrich Killian is also a algorithm lover, he has obfuscated the key using the following problem.
Consider a character set of size m, M = {a, b, c .. A, C, ... 1, 2..}. How many words of exactly length n, call it F, you can construct, assuming that each word will not use same character at two different places?
For example, consider M = {a, b, c} and n = 3
- aba, bbc are not allowed.
- abc, bac, cab are allowed
In order to make it more challenging, each position in the word can have only predefined characters in M. Iron Man has got following image as a clue.
Get the Flag. Flag is (F mod 1000000007)
(TODO)
- none yet