令a=2008-K,b=K-2009
a^2+b^2=2
(a+b)^2=(-1)^2=1
(a+b)^2=a^2+b^2+2ab
ab=(1-2)/2=-1/2
(2008-K).(K-2009)=ab=-1/2