1+2+3+4.+1000-1-2-3-4-5.-394
=(1+2+3+.+1000)-(1+2+3+4+.+394)
=1000×1001÷2-394×395÷2
=500500-77815
=422685