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.net/contest/1642/submission/147498144
Above is my tle code.