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