srm474 div2 500 simulation