求1,-2,3,-4,...,99,-100这100个整数的和.

问题描述:

求1,-2,3,-4,...,99,-100这100个整数的和.

(-1)+2+(-3)+4+…+(-99)+100
=(2-1)+(4-3)+…+(100-99)
=1*50
=50