The first lock can be tried 10 times, and the key is 10 times.
The second lock can be tried 9 times (because the first lock has consumed a key)
The third one can try 8 times.
…………
10 can only be tried 1 time.
According to the probability calculation.
10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 *1= 3628800 times can be identified.