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

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