Блог пользователя parth_15

Автор parth_15, история, 9 лет назад, По-английски

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?

  • Проголосовать: нравится
  • -10
  • Проголосовать: не нравится

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

Please, mention, whether you are getting TLE or WA .