Please help.Reason For TLE

Revision en1, by Abhi_Sarkar1996, 2017-09-01 09:24:15

Hello guys. I was solving this problem http://mirror.codeforces.com/problemset/problem/620/C by using maps. Got TLE on test 42 here http://mirror.codeforces.com/contest/620/submission/29965143.What I am confused about is the testcase 32 and 42 are similar so why is it giving ac on the first and TLE on the second? Any help will be much appreciated.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Abhi_Sarkar1996 2017-09-01 09:27:25 2 Tiny change: 'n/29965143.What I am ' -> 'n/29965143 . What I am '
en1 English Abhi_Sarkar1996 2017-09-01 09:24:15 366 Initial revision (published)