Either checker is not working or tests are really bad, check out my code...
z-jewelry bug
They are bad :\
I have a question about this task:
My first code passed 19/20
http://www.z-trening.com/submit.php?submit=7100091977&subm_code=1
But after some submissions this code passes 18/20
http://www.z-trening.com/submit.php?submit=7100091993&subm_code=1
Anyway , could someone tell me why is this to slow, it's O( n log n ) where n = 2^20 ?
My first code passed 19/20
http://www.z-trening.com/submit.php?submit=7100091977&subm_code=1
But after some submissions this code passes 18/20
http://www.z-trening.com/submit.php?submit=7100091993&subm_code=1
Anyway , could someone tell me why is this to slow, it's O( n log n ) where n = 2^20 ?