2003^2*x^2-2002*2004x-1=0
(2003^2x+1)(x-1)=0
较大根是1,所以a=1
x^2-2003x-2004=0
(x-2004)(x+1)=0
较小根是-1,所以b=-1
(a+b)^2004=0^2004=0