In this problem i found this issue for map time complexity is higher than vector,
problem link:https://codeforces.net/contest/1352/problem/E
sol link with vctor :https://codeforces.net/contest/1352/submission/214450956
sol link with map :https://codeforces.net/contest/1352/submission/214450292
your valuable opinion will surely help others who's are like me.