[Codeforces Round #447][Codeforces 894E]Ralph and Mushrooms

【Codeforces 652E】Pursuit For Artifacts