summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_r/center_3
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/clp_r/center_3')
-rw-r--r--prolog/problems/clp_r/center_3/sl.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/prolog/problems/clp_r/center_3/sl.py b/prolog/problems/clp_r/center_3/sl.py
new file mode 100644
index 0000000..74f11b5
--- /dev/null
+++ b/prolog/problems/clp_r/center_3/sl.py
@@ -0,0 +1,14 @@
+# coding=utf-8
+
+name = 'center/3'
+slug = 'najdi središča'
+
+description = '''\
+<p><code>center(Points, R, X/Y)</code>: <code>X/Y</code> je točka v seznamu točk <code>Points</code>, ki je za največ <code>R</code> oddaljena od vseh ostalih točk v seznamu.</p>
+<pre>
+?- center([1.0/1.1, 2.0/2.1, 3.0/3.1, 4.0/4.1], 4.0, X/Y).
+ X = 2.0, Y = 2.1 ;
+ X = 3.0, Y = 3.1.
+</pre>'''
+
+hint = {}