Need help with DIV 2 B Problem

Правка en2, от LightYagami674, 2020-01-28 18:58:30

6B - President's Office I submitted this solution — 69647174

What I am trying to do is to start dfs starting on the first cell of the president's table. If there is another table in that cell's neighbour i call the color function which is also dfs but on the deputy's table and increase the ans (res) by 1.

I do not know what is wrong in this approach. Can anyone help?

UPD: Solved thanks to CodingKnight

Теги #dfs, #div2 b

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский LightYagami674 2020-01-28 18:58:30 56 Tiny change: 'yone help?' -> 'yone help?\n\nUPD: Solved thanks to [user:CodingKnight]'
en1 Английский LightYagami674 2020-01-28 05:39:27 415 Initial revision (published)