![Smile :)](http://roboforum.ru/images/smilies/smile.gif)
Ну да, чо-то я не всю задачу поставил, да, имелось в виду у крестьянина есть выделенная земля опред. площади, надо построить самый короткий забор.
Но вот вопрос, как математика без итераций дает ответ: при сторонах прямоугольника A=b ? Вот это сила
![Smile :)](http://roboforum.ru/images/smilies/smile.gif)
Технический форум по робототехнике.
Dmitry__ писал(а):Ой, я все проспал
Ну да, чо-то я не всю задачу поставил, да, имелось в виду у крестьянина есть выделенная земля опред. площади, надо построить самый короткий забор.
Но вот вопрос, как математика без итераций дает ответ: при сторонах прямоугольника A=b ? Вот это сила
dccharacter писал(а):Ответ-то дай обходом графов
if not (("husb" in plot) or ("wife" in plot) or ("police" in plot)):
continue
if "inmate" in plot and "police" not in plot:
continue
if "inmate" in left and "police" not in left and len(left) > 1:
continue
if ("husb" in plot and "girl1" in plot) or ("husb" in plot and "girl2" in plot):
continue
if ("wife" in plot and "son1" in plot) or ("wife" in plot and "son2" in plot):
continue
if ("husb" in left and "girl1" in left and "wife" not in left) or ("husb" in left and "girl2" in left and "wife" not in left):
continue
if ("wife" in left and "son1" in left and "husb" not in left) or ("wife" in left and "son2" in left and "husb" not in left):
continue
if ("wife" in headingTo and "son1" in headingTo and "husb" not in headingTo) or ("wife" in headingTo and "son2" in headingTo and "husb" not in headingTo):
continue
if ("husb" in headingTo and "girl1" in headingTo and "wife" not in headingTo) or ("husb" in headingTo and "girl2" in headingTo and "wife" not in headingTo):
continue
(m+!f+d1+!d2)*(m+!f+!d1+d2)*(m+!f+!d1+!d2)
dccharacter писал(а):Дим, чо за лимиты, блин?
dccharacter писал(а):x = sqrt(s)