summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_fd/puzzle_ratio_2/en.py
blob: aa5b6472a3b3153b17f472ae5e9b577dbf07ce82 (plain)
1
2
3
4
5
6
7
8
9
id = 154
name = 'puzzle_ratio/2'
slug = 'age puzzle: ratio'

description = '''\
<p>Present ages of <code>A</code> and <code>B</code> are in the ratio of 5:4. In three years the ratio of their ages will become 11:9.</p>
<p>Write the predicate <code>puzzle_ratio(A, B)</code> that finds the ages of <code>A</code> and <code>B</code>.</p>'''

hint = {}