We can't speak about "doping". This is something general, when instead different substances have a very different effect, and involve different qualities.
In sprint, doping is used for increasing the muscle strength, and for making more effective the endurance to the frequency, something depending in great part on the nervous system.
These effects are produced mainly by STEROIDS. But the assumption of steroids doesn't produce directly a big increase of strength, if not connected with a very hard work with weights and in direction of increasing the body mass.
For that reason (the ability to work more increasing the volume of the specific training of strength), EPO can support in NOT DIRECT WAY the training of sprinters, making faster the recovery inside every session and inside a microcycle.
Completely different is the effect of taking EPO. This can have action only for enhancing the ability to transport Oxygen, NEVER producing more benefit than a hard and proper training of Aerobic Power in altitude.
Therefore, if EPO can increase the transport of Oxygen, that means to enhance the Lactic Threshold, Who can have advantage from the assumption are athletes whose working area is the Anaerobic Lactic at high intensity (400-800m), because these kind of workouts need high quantity of Oxygen for recovering, and normally the athletes running these events don't have aerobic training at the right intensity and with the right volume, for problems of mentality (they don't like this kind of fatigue).
For answering your questions, there is no doubt that Marita Koch and Jarmila Kratochvilova were doped, taking a lot of steroids.
Instead, I think that also long distance runners could have some improvement in their performance taking steroids, because their situation is the opposite of specialists of short distances : the "Aerobic Athletes" don't like to work for enhancing their strength, because this is a type of fatigue they consider "useless" because there is not the same type of sufference they reach running very fast for long time.
So, there is not a distance where doping doesn't have effect, depending on doping.
My ideas, coming from my observations for longer than 50 years (I know what sectors like throwing did in the past with steroids) is as follow :
1- EPO : the effect is to raise the level of Aerobic Power, so works with all the athletes who don't train in proper way that quality, and doesn't work for all the athletes using altitude and working with great extension and intensity in the Aerobic field. If they use proper training, already from 5000m there are not advantage. If athletes don't work in that direction, since for long distances the Aerobic Power is the key of the performance, they can have advantage.
In other words : with EPO, athletes can cut the time needed for reaching a high level of Aerobic Power, but not the maximal level. The most part of doped athletes (with EPO) start tu use it when they want to find some shortcut for reaching in two months time the same level possible with 4-5 months of clean training (this was the case of Rita Jeptoo), but THEY CAN'T REACH A LEVEL HIGHER THAN THE LEVEL REACHABLE WITH TRAINING ONLY, using more time.
2- STEROIDS : the main effect is to allow athletes working more in direction of strength, and for that reason who more benefitted of this doping were sprinters (specifically women), throwers, and jumpers (people using explosivity and fundamental strength, more than endurance).
And also, generalisations are not possible. For example, if we look at the Chinese boom of 1993, we can see how the talent of Wang Junxia was something different from the other Chinese athletes. Probably she used some substance helping recovery and Oxygen transportation (maybe the blood of turtles really produced some benefit), but was so much far from the other teammates (apart Qu Yunxia) that is not possible to speak about "state doping" as reason of her performances, without thinking she was a "freak of nature".