diff options
Diffstat (limited to 'prolog/problems/clp_r/max_sum_2')
-rw-r--r-- | prolog/problems/clp_r/max_sum_2/sl.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/prolog/problems/clp_r/max_sum_2/sl.py b/prolog/problems/clp_r/max_sum_2/sl.py new file mode 100644 index 0000000..b73459e --- /dev/null +++ b/prolog/problems/clp_r/max_sum_2/sl.py @@ -0,0 +1,15 @@ +# coding=utf-8 + +name = 'max_sum/2' +slug = 'najdi največja sosedna elementa seznama' + +description = '''\ +<p><code>max_sum(List, Max)</code>: <code>Max</code> je največja možna vsota dveh sosednih elementov v seznamu <code>List</code>.</p> +<pre> +?- max_sum([4.5, 3.6, 1.2, 6.7], Max). + Max = 8.1. +?- max_sum([1.1, 1.2, -12.3, 8.8], Max). + Max = 2.3. +</pre>''' + +hint = {} |