. . , Project Euler, , , , , , , , .
, , , (TM). , , "" , , - .
, , , 1 . 1 , . , , , .. - , , , .
There are many innovative solutions, but the first thing you think about, especially the one you think about when Project Euler describes the problem, is likely to be wrong.
So how can you approach this problem? There are probably too many permutations, but maybe you can figure out something with the mapping and matching of the mappings?
(Trying not to give it all away.)
source
share