Sum of Consecutive Integers

LightOJ - 1278