Ya canna fool the laws of physics, the energy you put in to the battery is as much as you could ever get out( with real bikes and losses you get less out than in) .
So if you sweat hard you would go slowly then have some spare energy to help you sweat more going up the hill.
Not worth it just...