Here is my code https://codeforces.me/contest/681/submission/91075066 for the question https://codeforces.me/problemset/problem/681/C. Can anyone help me that use of which thing is causing the MLE and which data structure should be used to avoid MLE?