From 388b32039898cc8f1784378689007254eb7a33b6 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 13 Jan 2016 13:51:15 +0100 Subject: Remove space-padding from
 blocks

---
 prolog/problems/license_plates/checklicenseplate_3/en.py | 14 +++++++-------
 prolog/problems/license_plates/checklicenseplate_3/sl.py | 14 +++++++-------
 prolog/problems/license_plates/firstminus_2/en.py        |  6 +++---
 prolog/problems/license_plates/firstminus_2/sl.py        |  6 +++---
 prolog/problems/license_plates/genexp_2/en.py            | 16 ++++++++--------
 prolog/problems/license_plates/genexp_2/sl.py            | 16 ++++++++--------
 prolog/problems/license_plates/getdigits_2/en.py         |  4 ++--
 prolog/problems/license_plates/getdigits_2/sl.py         |  4 ++--
 prolog/problems/license_plates/joindigits_2/en.py        | 10 +++++-----
 prolog/problems/license_plates/joindigits_2/sl.py        | 10 +++++-----
 10 files changed, 50 insertions(+), 50 deletions(-)

(limited to 'prolog/problems/license_plates')

diff --git a/prolog/problems/license_plates/checklicenseplate_3/en.py b/prolog/problems/license_plates/checklicenseplate_3/en.py
index 76270cd..927c261 100644
--- a/prolog/problems/license_plates/checklicenseplate_3/en.py
+++ b/prolog/problems/license_plates/checklicenseplate_3/en.py
@@ -6,13 +6,13 @@ slug = 'check if the numbers in a license plate form an equation'
 description = '''\
 

checkLicensePlate(LP, E1, E2): the digits in the list LP can be combined into a valid equation E1 = E2. E1 and E2 are arithmetic expressions, obtained from sublists of Plate by inserting arithmetic operators (+, -, * and /) between elements. An additional unary minus can be inserted before the leftmost number of E1 and E2.

-  ?- checkLicensePlate([l,j,l,3,-,2,1,7], E1, E2).
-    E1 = 3,       E2 = 21/7 ;
-    E1 = -3,      E2 = -21/7 ;
-    E1 = 3*2,     E2 = -1+7 ;
-    E1 = -3*2,    E2 = 1-7 ;
-    E1 = 3*2+1,   E2 = 7 ;
-    E1 = -3*2-1,  E2 = -7.
+?- checkLicensePlate([l,j,l,3,-,2,1,7], E1, E2).
+  E1 = 3,       E2 = 21/7 ;
+  E1 = -3,      E2 = -21/7 ;
+  E1 = 3*2,     E2 = -1+7 ;
+  E1 = -3*2,    E2 = 1-7 ;
+  E1 = 3*2+1,   E2 = 7 ;
+  E1 = -3*2-1,  E2 = -7.
 
''' hint = {} diff --git a/prolog/problems/license_plates/checklicenseplate_3/sl.py b/prolog/problems/license_plates/checklicenseplate_3/sl.py index 2e3ec65..92578d4 100644 --- a/prolog/problems/license_plates/checklicenseplate_3/sl.py +++ b/prolog/problems/license_plates/checklicenseplate_3/sl.py @@ -6,13 +6,13 @@ slug = 'Preveri, če lahko iz številk v registrski tablici sestaviš veljavno e description = '''\

checkLicensePlate(LP, E1, E2): iz cifer v seznamu LP se da sestaviti veljavno enačbo E1 = E2. E1 in E2 sta aritmetična izraza, sestavljena iz podseznamov Plate z uporabo aritmetičnih operatorjev (+, -, * and /). Dodaten unarni minus se lahko vstavi na začetek izrazov E1 in E2.

-  ?- checkLicensePlate([l,j,l,3,-,2,1,7], E1, E2).
-    E1 = 3,       E2 = 21/7 ;
-    E1 = -3,      E2 = -21/7 ;
-    E1 = 3*2,     E2 = -1+7 ;
-    E1 = -3*2,    E2 = 1-7 ;
-    E1 = 3*2+1,   E2 = 7 ;
-    E1 = -3*2-1,  E2 = -7.
+?- checkLicensePlate([l,j,l,3,-,2,1,7], E1, E2).
+  E1 = 3,       E2 = 21/7 ;
+  E1 = -3,      E2 = -21/7 ;
+  E1 = 3*2,     E2 = -1+7 ;
+  E1 = -3*2,    E2 = 1-7 ;
+  E1 = 3*2+1,   E2 = 7 ;
+  E1 = -3*2-1,  E2 = -7.
 
''' hint = {} diff --git a/prolog/problems/license_plates/firstminus_2/en.py b/prolog/problems/license_plates/firstminus_2/en.py index cea521a..f939c91 100644 --- a/prolog/problems/license_plates/firstminus_2/en.py +++ b/prolog/problems/license_plates/firstminus_2/en.py @@ -6,9 +6,9 @@ slug = 'negate the first element in a list of numbers' description = '''\

firstMinus(L1, L2): the list L2 is the same as L1, except for the first element that may be negated. Your code should return both solutions.

-  ?- firstMinus([1,2,3], L).
-    L = [1,2,3] ;
-    L = [-1,2,3].
+?- firstMinus([1,2,3], L).
+  L = [1,2,3] ;
+  L = [-1,2,3].
 
''' hint = {} diff --git a/prolog/problems/license_plates/firstminus_2/sl.py b/prolog/problems/license_plates/firstminus_2/sl.py index d480994..6186302 100644 --- a/prolog/problems/license_plates/firstminus_2/sl.py +++ b/prolog/problems/license_plates/firstminus_2/sl.py @@ -6,9 +6,9 @@ slug = 'Negiraj prvi element v danem seznamu števil' description = '''\

firstMinus(L1, L2): seznam L2 je enak kot L1, razen prvega elementa, ki je lahko negiran ali pa ne. Predikat naj vrne obe rešitvi, eno za drugo.

-  ?- firstMinus([1,2,3], L).
-    L = [1,2,3] ;
-    L = [-1,2,3].
+?- firstMinus([1,2,3], L).
+  L = [1,2,3] ;
+  L = [-1,2,3].
 
''' hint = {} diff --git a/prolog/problems/license_plates/genexp_2/en.py b/prolog/problems/license_plates/genexp_2/en.py index 2238f4d..9b25f12 100644 --- a/prolog/problems/license_plates/genexp_2/en.py +++ b/prolog/problems/license_plates/genexp_2/en.py @@ -6,14 +6,14 @@ slug = 'generate an arithmetic expression from a list' description = '''\

genexp(L, E): the expression E is obtained from the list L by inserting arithmetic operators between list elements. Your code should generate all valid solutions.

-  ?- genexp([1,2,3], L).
-    L = 1+2+3 ;
-    L = 1+2-3 ;
-    L = (1+2)*3 ;
-    L = (1+2)/3 ;
-    L = 1-2+3 ;
-    L = 1-2-3 ;
-    ...
+?- genexp([1,2,3], L).
+  L = 1+2+3 ;
+  L = 1+2-3 ;
+  L = (1+2)*3 ;
+  L = (1+2)/3 ;
+  L = 1-2+3 ;
+  L = 1-2-3 ;
+  …
 
''' hint = {} diff --git a/prolog/problems/license_plates/genexp_2/sl.py b/prolog/problems/license_plates/genexp_2/sl.py index 9160f27..b205a7c 100644 --- a/prolog/problems/license_plates/genexp_2/sl.py +++ b/prolog/problems/license_plates/genexp_2/sl.py @@ -6,14 +6,14 @@ slug = 'Sestavi aritmetični izraz iz številk v podanem seznamu' description = '''\

genexp(L, E): Izraz E je zgrajen iz številk v seznamu L z dodajanjem aritmetičnih operatorjev. Predikat naj vrača vse možne izraze, enega po enega.

-  ?- genexp([1,2,3], L).
-    L = 1+2+3 ;
-    L = 1+2-3 ;
-    L = (1+2)*3 ;
-    L = (1+2)/3 ;
-    L = 1-2+3 ;
-    L = 1-2-3 ;
-    ...
+?- genexp([1,2,3], L).
+  L = 1+2+3 ;
+  L = 1+2-3 ;
+  L = (1+2)*3 ;
+  L = (1+2)/3 ;
+  L = 1-2+3 ;
+  L = 1-2-3 ;
+  …
 
''' hint = {} diff --git a/prolog/problems/license_plates/getdigits_2/en.py b/prolog/problems/license_plates/getdigits_2/en.py index afc41d4..cfa66a0 100644 --- a/prolog/problems/license_plates/getdigits_2/en.py +++ b/prolog/problems/license_plates/getdigits_2/en.py @@ -6,8 +6,8 @@ slug = 'remove non-numeric elements from a list' description = '''\

getdigits(L, DL): the list DL contains the numeric elements of L, in the same order as in the original list.

-  ?- getdigits([2,3,e,-,4,b], DL).
-    DL = [2,3,4].
+?- getdigits([2,3,e,-,4,b], DL).
+  DL = [2,3,4].
 
''' hint = {} diff --git a/prolog/problems/license_plates/getdigits_2/sl.py b/prolog/problems/license_plates/getdigits_2/sl.py index 3f59e90..a67f164 100644 --- a/prolog/problems/license_plates/getdigits_2/sl.py +++ b/prolog/problems/license_plates/getdigits_2/sl.py @@ -6,8 +6,8 @@ slug = 'Vrni vse številke iz podanega seznama' description = '''\

getdigits(L, DL): seznam DL vsebuje vse številke iz seznama L, vrstni red elementov se ohrani.

-  ?- getdigits([2,3,e,-,4,b], DL).
-    DL = [2,3,4].
+?- getdigits([2,3,e,-,4,b], DL).
+  DL = [2,3,4].
 
''' hint = {} diff --git a/prolog/problems/license_plates/joindigits_2/en.py b/prolog/problems/license_plates/joindigits_2/en.py index c51f452..9dd7c00 100644 --- a/prolog/problems/license_plates/joindigits_2/en.py +++ b/prolog/problems/license_plates/joindigits_2/en.py @@ -6,11 +6,11 @@ slug = 'join adjacent numbers in a list' description = '''\

joindigits(L, NL): the list NL is obtained from L by arbitrarily joining neighboring digits. Your code should generate all valid solutions.

-  ?- joindigits([3,2,4], NL).
-    NL = [324] ;
-    NL = [32,4] ;
-    NL = [3,24] ;
-    NL = [3,2,4].
+?- joindigits([3,2,4], NL).
+  NL = [324] ;
+  NL = [32,4] ;
+  NL = [3,24] ;
+  NL = [3,2,4].
 
''' hint = {} diff --git a/prolog/problems/license_plates/joindigits_2/sl.py b/prolog/problems/license_plates/joindigits_2/sl.py index 344d849..e8c0cb7 100644 --- a/prolog/problems/license_plates/joindigits_2/sl.py +++ b/prolog/problems/license_plates/joindigits_2/sl.py @@ -6,11 +6,11 @@ slug = 'Združi sosednja števila v seznamu na vse možne načine' description = '''\

joindigits(L, NL): seznam NL dobimo iz seznama L tako, da poljubno združujemo sosednja števila. Predikat naj vrača vse možnosti, eno po eno.

-  ?- joindigits([3,2,4], NL).
-    NL = [324] ;
-    NL = [32,4] ;
-    NL = [3,24] ;
-    NL = [3,2,4].
+?- joindigits([3,2,4], NL).
+  NL = [324] ;
+  NL = [32,4] ;
+  NL = [3,24] ;
+  NL = [3,2,4].
 
''' hint = {} -- cgit v1.2.1