From a06e1f8270554c7ac9444adedc17969a2f677a6b Mon Sep 17 00:00:00 2001 From: Semyon Date: Sun, 28 Apr 2024 20:10:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B4=D0=B0=D1=87=D0=B0=2011.=20?= =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BC=D0=B0=D1=82=D0=B8=D0=BA=D1=83=20=D0=B8=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80=20(=D0=BD=D0=B5=D1=82=20?= =?UTF-8?q?=D0=BD=D1=83=D0=BB=D1=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/task11.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/task11.md b/tasks/task11.md index c3f236665..ae9f12892 100644 --- a/tasks/task11.md +++ b/tasks/task11.md @@ -31,7 +31,7 @@ select = v_filter? v_filter? 'return' VAR (',' VAR)? 'where' VAR 'reachable' 'fr v_filter = 'for' VAR 'in' expr -VAR = [a..z]+[a..z 0..1]* +VAR = [a..z]+[a..z 0..9]* NUM = [1..9]+[0..9]* CHAR = '"' [a..z] '"' @@ -45,15 +45,15 @@ let g is graph add edge (1, "a", 2) to g add edge (2, "a", 3) to g add edge (3, "a", 1) to g -add edge (1, "c", 0) to g -add edge (0, "b", 4) to g -add edge (4, "b", 0) to g +add edge (1, "c", 5) to g +add edge (5, "b", 4) to g +add edge (4, "b", 5) to g let q = "a"^[1..3] . q . "b"^[2..3] | "c" let r1 = for v in [2] return u where u reachable from v in g by q -add edge (0, "d", 5) to g +add edge (5, "d", 6) to g let r2 = for v in [2,3] return u,v where u reachable from v in g by (q . "d")