Help needed on Codechef problem

Правка en1, от parth_15, 2017-09-19 13:27:55

Hello, I was solving a problem PROBLEMfrom this long challenge but my solution Solutionis not getting accepted. I have used 2 colouring graph method for vertices whose difference is 1 and DSU for vertices whose difference is 0. Please have a look at the solution and tell that is approach correct or not?

Теги codechef long, disjoint set, #unionfind

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский parth_15 2017-09-19 13:27:55 435 Initial revision (published)