The factor that contributed to the success of some mammals during the K-Pg mass extinction event is:
The ability to regulate their body temperatures in the face of reduced sunlight and colder temperatures.
This adaptability may have given them an advantage in surviving the drastic environmental changes caused by the event.