s = 100+ 10 1+ 102+ 103...+997+998+999
=( 100+999)+( 10 1+998)+( 102+997)+...+(549+550)
= 1099×450
=494500