RGB_ICPC7's submission of Selecting Edges | CodeChef