Here is my code https://mirror.codeforces.com/contest/681/submission/91075066 for the question https://mirror.codeforces.com/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?