Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Help required for GRAFFDEF (spoj)

Правка en1, от __ek__tha__tiger__, 2018-10-13 10:41:42

Well, I approached this problem in this way. I found out the bridges of the graph, and since the graph is given to be a connected one, I calculated the number of failed combinations of placing the soldiers and then calculated the probability.

Here is a link to my code

Can anyone point out where am I going wrong!

Here is the link for the problem

Теги #graphs

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский __ek__tha__tiger__ 2018-10-13 10:41:42 460 Initial revision (published)