Codeforces Round #645 (Div. 2)(D.The Best Vacation) Source will download... Codeforces Round #645 (Div. 2)(D.The Best Vacation)