已知函数f(x)=ex(x2-x+1)-m,若?a,b,c∈R,且a<b<c,使得f(a)=f(b)=f(c)=0.则实数m的取值范围是( )A.(-∞,1)B.(1,3e)C.(1,e3)D.(-∞,1)∪(e3,+∞)