FINISHED in 25 mins, but meets some runtime error, fixed in an extra 20 mins