Reset K Edges

Problem Name:
Reset K Edges
Site:CodeForces
Links:
Tags:
Problem setters: