diff options
Diffstat (limited to 'prolog/problems/clp_r/bounding_box_3')
-rw-r--r-- | prolog/problems/clp_r/bounding_box_3/sl.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/prolog/problems/clp_r/bounding_box_3/sl.py b/prolog/problems/clp_r/bounding_box_3/sl.py new file mode 100644 index 0000000..81bfdbd --- /dev/null +++ b/prolog/problems/clp_r/bounding_box_3/sl.py @@ -0,0 +1,13 @@ +# coding=utf-8 + +name = 'bounding_box/3' +slug = 'najdi najmanjši pravokotnik okoli podanih točk' + +description = '''\ +<p><code>bounding_box(Points, X1/Y1, X2/Y2)</code>: <code>X1/Y1</code> in <code>X2/Y2</code> sta spodnja-leva in zgornja-desna točka, ki definirata najmanjši pravokotnik, ki vsebuje vse točke v seznamu <code>Points</code>. +<pre> +?- bounding_box([4.5/2.3, 3.6/1.2, 6.7/0.1], X1/Y1, X2/Y2). + X1 = 3.6, Y1 = 0.1, X2 = 6.7, Y2 = 2.3. +</pre>''' + +hint = {} |