getting TLE. which process can I go?
i used two maps for storing occurances of (ab + c) and d(e + f). used a set to store all (a*b + c);
then, iterated over the set and added the ans by
ans = ans + mp[*it]*mp2[*it];
here is my code https://ideone.com/WVY7AP
please help.
problem https://www.spoj.com/problems/ABCDEF/