Home > categories > Security & Protection > Key > 80 keys of the lock have been messed up. At least how many times should I try to make the no locks fit their keys?
Question:

80 keys of the lock have been messed up. At least how many times should I try to make the no locks fit their keys?

80 keys of the lock have been messed up. At least how many times should I try to make the no locks fit their keys?

Answer:

Then take the key again for the second time and try it 78 timesAnd so on......When you leave 3 keys and 3 locks, take out the key and try it at least 2 times
First take out a key, then use it to test the lock. The first key is tried at most 79 times. (assuming that the seventy-ninth locks are not, the eightieth must not be tried)
When you have two keys, try it 1 timesSo the algorithm should be 79+78+...... +2+1= (1+79) *79/2=3160Well, I'm not sure if I tried a lock even once, so I'm not sure...

Share to: