summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_fd/puzzle_beth_1/en.py
blob: 7f4ebc2f137ad6d199a5e1e7b913271979a3e64c (plain)
1
2
3
4
5
6
7
8
9
10
id = 155
name = 'puzzle_beth/1'
slug = 'age puzzle: beth'

description = '''\
<p>When asked how old she was, Beth replied "In two years I will be twice as old as I was five years ago".</p>
<p>Write the predicate <code>puzzle_beth(X)</code> that finds her current age as <code>X</code>.</p>
'''

hint = {}