10. A key can only open one lock. Now there are 10 keys and 10 locks, but it is unknown which key opens which lock. At most how many attempts are needed to successfully match all the keys and locks.
【Analysis】 $9+8+7+\ldots . . .+2+1=45$