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!
Hello,
I'm not sure if this is what you're looking for, but here is a solution in Python 2.7.5
It's not the most efficient solution xD But it worked for the sample problem
Thank you, but this is not what I was looking for, since the problem expects a logarithmic solution.
I suggest you try A = 1 and B = 2**64 — 1.
Unfortunatelly, this solution is too slow...
Anyone have a better idea?
Did you solve it? I did if you still asking for help
Yes, I did. Thanks!