Cheap computer build solely for league of legends only

I want to have a computer just for league of legends with no lag at all(at least 40 fps) and I don't care if i have to put it on very low settings. I just want no lag and also my budget is 300$ at most cause I'm only gonna play LoL and few browsing. Can anyone please give me specs for this build. Thank you.