summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_fd/tobase_3
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-01-13 13:51:15 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-01-13 13:51:15 +0100
commit388b32039898cc8f1784378689007254eb7a33b6 (patch)
treeac9e4c6145ad323dc5479179a04f44bbcea73eff /prolog/problems/clp_fd/tobase_3
parente36a8a2feca7552d236c0f6e89ac73e7e690e7b1 (diff)
Remove space-padding from <pre> blocks
Diffstat (limited to 'prolog/problems/clp_fd/tobase_3')
-rw-r--r--prolog/problems/clp_fd/tobase_3/en.py12
-rw-r--r--prolog/problems/clp_fd/tobase_3/sl.py12
2 files changed, 12 insertions, 12 deletions
diff --git a/prolog/problems/clp_fd/tobase_3/en.py b/prolog/problems/clp_fd/tobase_3/en.py
index c05ab2a..41f8889 100644
--- a/prolog/problems/clp_fd/tobase_3/en.py
+++ b/prolog/problems/clp_fd/tobase_3/en.py
@@ -6,12 +6,12 @@ slug = 'convert numbers from/to the decimal system'
description = '''\
<p><code>tobase(Number, B, X)</code>: given a <code>Number</code> in the decimal system (base 10), <code>X</code> represents the same number in the system with base <code>B</code>. Implement this predicate using constraints. Limit the value of <code>B</code> to the interval [2..10].</p>
<pre>
- ?- tobase(42, 2, X).
- X = 101010.
- ?- tobase(N, 2, 101010).
- N = 42.
- ?- tobase(42, B, 101010).
- B = 2.
+?- tobase(42, 2, X).
+ X = 101010.
+?- tobase(N, 2, 101010).
+ N = 42.
+?- tobase(42, B, 101010).
+ B = 2.
</pre>'''
hint = {}
diff --git a/prolog/problems/clp_fd/tobase_3/sl.py b/prolog/problems/clp_fd/tobase_3/sl.py
index a775808..72879af 100644
--- a/prolog/problems/clp_fd/tobase_3/sl.py
+++ b/prolog/problems/clp_fd/tobase_3/sl.py
@@ -6,12 +6,12 @@ slug = 'Pretvori števila v/iz desetiškega sistema'
description = '''\
<p><code>tobase(Number, B, X)</code>: število <code>Number</code> je v desetiškem sistemu. <code>X</code> predstavlja to število v sistemu z bazo <code>B</code>. Implementiraj predikat z uporabo omejitev. Omeji vrednost <code>B</code> na interval [2..10].</p>
<pre>
- ?- tobase(42, 2, X).
- X = 101010.
- ?- tobase(N, 2, 101010).
- N = 42.
- ?- tobase(42, B, 101010).
- B = 2.
+?- tobase(42, 2, X).
+ X = 101010.
+?- tobase(N, 2, 101010).
+ N = 42.
+?- tobase(42, B, 101010).
+ B = 2.
</pre>'''
hint = {}