vahid sanei wrote:I got Acc in 2.920 sec , how can i reduce time of my algo ?
I use union-find and map
Mine took 6.49 sec.I also used union-find algo and map......I am asking u how urs took such a shorter time.
I saw somene getting AC in more shorter time in statistics.
If u need to check my code, tell me. I will pm you. I wonder how my code took such a long time.
thanx in advance.