Revision en2, by hell_hacker, 2017-06-29 01:23:14

Here is the problem

Here is my solution

I tried to solve it using treaps.

I keep on getting WA. In another attempt I tried to store values in map for checking duplicates(i won't insert when duplicates) but I got TLE. Can anyone help me in finding out the bug. Thanks.

Tags spoj

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English hell_hacker 2017-06-29 01:23:14 37 Tiny change: 'SRX)\n\nI keep' -> 'SRX)\n\nI tried to solve it using treaps.\n\nI keep'
en1 English hell_hacker 2017-06-29 01:22:31 361 Initial revision (published)