1+2+3+...+999=(1+999)*999/2=499500
解:(1+999)*999/2=499500
首项加末项乘以项数除以2=500*999
(1+999)*999 /2 = 499500