Can someone who solved the task look at my code and find any mistake?http://www.z-trening.com/new/www/html/submit.php?submit=7100051938&subm_code=1
Mit-Virus
you should reset variable "duz" after each test case..
and your worst case complexity is O( n^2 ) so probably you won't get ac..maybe you will if test cases are too random...but that's not intended solution for sure.
and your worst case complexity is O( n^2 ) so probably you won't get ac..maybe you will if test cases are too random...but that's not intended solution for sure.
Thanks for response... I will try to think of something else...