RE: The Competitive Battling Questions Thread
If the Pokemon was involved in the battle at all, then yes, they get the EVs. So even if one Pokemon doesn't attack, gets switched out, and some other Pokemon kills it, the first and second Pokemon get the same amount of EVs. They aren't split, so if you kill a Bidoof (1 HP) all Pokemon involved in the battle would get 1 HP EV point.
Also, it is impossible to gain or lose EVs at level 100.