topcoder SRM 637 ConnectingGameDiv2 completed