summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_r/max_sum_2
diff options
context:
space:
mode:
authorAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2016-04-24 21:34:35 +0200
committerAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2016-04-24 21:34:35 +0200
commit8c04e6a402aba2270aadc78fb44cfa8b3762d42c (patch)
tree566311608edf4a4e292d2eb22192143da44bcf38 /prolog/problems/clp_r/max_sum_2
parent77adbfbf6ff1923e913e4a29a7ec675c64c9a899 (diff)
CLP(R) exercises: Slovenian descriptions added.
Diffstat (limited to 'prolog/problems/clp_r/max_sum_2')
-rw-r--r--prolog/problems/clp_r/max_sum_2/sl.py15
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 = {}