Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

RP_9's blog

By RP_9, history, 3 months ago, In English,

Hello Codeforces,

I was trying to solve Codeforces Round #632 (Div. 2) Problem C. It gave me TLE on the last case (87th case) when I used unordered_map (Link) while it was accepted when I used map (Link).

I know the worst-case time complexity of the unordered_map is O(n) for searching, insertion, and deletion. Is the last case the worst case? Could someone help me to figure out how this is happening or where I'm getting wrong?

Read more »

 
 
 
 
  • Vote: I like it
  • +1
  • Vote: I do not like it

By RP_9, history, 2 years ago, In English,

Hello Codeforces, I have some issue related to last unsolved problems. I solved some problems but still, I can see in my unsolved problems section. Please help me to get rid out of this my problem.

Thank you in advance.

Read more »

 
 
 
 
  • Vote: I like it
  • +24
  • Vote: I do not like it

By RP_9, history, 2 years ago, In English,

I have tried to submit the solution to the problem which is shown below. I tried a lot but still get idleness limit exceeded.

This is my solution link.

http://codeforces.com/contest/916/submission/35832727

Can somebody help me how to overcome this??

Thank you in advance.

Read more »

 
 
 
 
  • Vote: I like it
  • +8
  • Vote: I do not like it