Sorry for Leonard. With Howard if you want to try aquarium salt higher dose ? Try 3tsp/gall with daily 100% water changes. Or he needs medications but you don't have time to look for it, unless you want to try. You can try to even do a few water changes a day if he still alive. See if it can help.
With Sheldon i am kind of worry since he was in the same tank with Leonard. What i would recommend take Howard out and disinfect the tank so you can put Sheldon in there. You can keep Howard in his original cup and do aquarium salt 3tsp/gall. Disinfect 3 gall tank with 10% bleach. DO NOT USE ANYTHING FROM 3 GALLON TANK. Throw everything out. Just use diluted bleach 10%. Let it sit for about 15-20 min wash it really well like million times with hot,warm,cold water,wipe it and wash it again let it sit to dry out for a few days better on the sun to neutralize the clorax.
While you still have Sheldon in the same tank where Leonard died at least do 100% water change again. I don't know but it really worry me that he in the same tank. Like i wrote before his immune system might be stronger but he might be get sick later . So i think you need to try to prevent it