summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_r/center_3/en.py
blob: 2c1f882cdb7b70519e24cd01de13b5fed748e221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# coding=utf-8

id = 158
name = 'center/3'
slug = 'find central points'

description = '''\
<p><code>center(Points, R, X/Y)</code>: <code>X/Y</code> is a point in the list <code>Points</code> that is at most <code>R</code> away from all other points.</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 = {}