Koichi Namekata's submission of Updating Edges on Trees | CodeChef