Here I'm doing searching work only.unordered_map<>takes O(1) for searching and map<>takes O(long) for searching so I didn't get that why I'm getting tle. Here is my code link -:
https://codeforces.me/contest/1642/submission/147498144
Above is my tle code.