summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_fd/puzzle_abc_3/en.py
blob: 3d707155f726de3ad24dd4f7035664ca08069dca (plain)
1
2
3
4
5
6
7
8
9
10
11
# coding=utf-8

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 = {}