summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_r/max_sum_2/common.py
blob: 71c300524d5a19f80c758b84222c2147a21fb4b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# coding=utf-8

id = 156
group = 'clp_r'
number = 66
visible = True
facts = None

solution = '''\
max_sum([_], S) :-
    minimize(S).
max_sum([A,B|T], S) :-
    { S >= A + B },
    max_sum([B|T], S).'''