Diplomacy

From programming_contest
Jump to navigation Jump to search

collapse all groups of same color nodes. they always change together. then try every group and alternate expanding it purple/orange. this is just distance. find the one with the least distance to the furthest node