Codeforces Round #429 (Div. 2), problem: (D) Leha and another game about graph Solution In C/C++

Codeforces Round #429 (Div. 2), problem: (D) Leha and another game about graph Solution In C/C++