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 +++++++-------
 2 files changed, 14 insertions(+), 14 deletions(-)

(limited to 'prolog/problems/license_plates/checklicenseplate_3')

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 = {} -- cgit v1.2.1