a^2+b^2+ab+1-a-b
=1/2(a+b)^2+1/2(a^2-2a+1)+1/2(b^2-2b+1)
=1/2[(a+b)^2+(a-1)^2+(b-1)^2]
又三项不可能同时为0,所以得证~