Advertisement
fkudinov

5. Розв'язуємо геометричну задачу за допомого StackOverflow / Задачі на Python / Острів Ешера

Jun 9th, 2024
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | Source Code | 0 0
  1. # -------  tasks/escher_tasks/task_5__wild_dogs.py --------------------
  2.  
  3. def wild_dogs(coords):
  4.     return 0
  5.  
  6.  
  7. # -------   tests/test_escher_tasks/test_task_5__wild_dogs.py  ---------
  8.  
  9. from tasks.escher_tasks.task_5__wild_dogs import wild_dogs
  10.  
  11.  
  12. def test_wild_dogs():
  13.  
  14.     assert wild_dogs([(7, 122), (8, 139), (9, 156),
  15.                       (10, 173), (11, 190), (-100, 1)]) == 0.18
  16.  
  17.     assert wild_dogs([(6, -0.5), (3, -5), (1, -20)]) == 3.63
  18.  
  19.     assert wild_dogs([(10, 10), (13, 13), (21, 18)]) == 0
  20.  
Tags: checkio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement