summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_fd/puzzle_abc_3/en.py
blob: 5385fe2ab93d768e05b0577573f3473e1a274718 (plain)
1
2
3
4
5
6
7
8
9
id = 153
name = 'puzzle_abc/3'
slug = 'age puzzle: abc'

description = '''\
<p>Person <code>A</code> is two years older than <code>B</code> who is twice as old as <code>C</code>. The total of the ages of A, B and C is 27.</p>
<p>Write the predicate <code>puzzle_abc(A, B, C)</code> that finds the ages of the three people.</p>'''

hint = {}