topcoder SRM 146 div2 1500p
add test case