I need a hint to solve problem F (password remembering) at ICPC DHAKA 2009.
I have tried to solve this problem for several days unsuccessfully...
At this link you can get a description and some comments about the questions:
http://www.northsouth.edu/acm/dhaka2009.pdf
The link of the problem in Live Archive is:
I would appreciate any help. Thanks in advance!