http://mirror.codeforces.com/contest/514/submission/26169645 http://mirror.codeforces.com/contest/514/submission/26169620
How is that even possible?? The only difference between the sources is the declaration of the Set container (double). Is there anybody who can explain THAAT?????
Just never use set to count doubles. Use epsilon when you work with doubles, or try to avoid doubles in program.
That's not the answer to the question "how is that even possible", though.
thanks
A similar question was asked a few weeks ago. Take a look at my comment for more information.
However, I don't see why the declaration of set in the global area adds at the 8th test ~11 extra elements, returning 47 instead of 36.