From 1129cd654083fbc09cf41f3e1d0aac50ee35ebb8 Mon Sep 17 00:00:00 2001 From: Bartekfiolek Date: Fri, 29 Dec 2023 19:43:44 +0100 Subject: [PATCH] Task description fix. --- TaskE20/description.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/TaskE20/description.txt b/TaskE20/description.txt index cfd24e5..8a3a27b 100644 --- a/TaskE20/description.txt +++ b/TaskE20/description.txt @@ -15,16 +15,15 @@ can not use negation in the programming language if it is possible to express the same in regular expression). Wherever possible, use one regular expression. -Dla każdego napisu należy wydobyć zadany napis jest numerem telefonu. +Dla każdego napisu należy wskazać czy zadany napis jest numerem telefonu. Zakładamy, że numer telefonu składa się z dwóch cyfr opcjonalnie poprzedzonych zerem, po których następuje spacja i 7 cyfr w formacie -N-NNN-NNN. Jeśli napis nie spełnia podanych warunków, należy wypisać -"". +N-NNN-NNN. Jeśli napis spełnia podane warunki, należy wypisać +"yes", w przeciwnym wypadku "no". -For each string, extract a phone number. We assume, that the phone +For each string, indicate whether it is a phone number. We assume, that the phone number consists of two digits (optionally prefixed by zero), followed -by space and 7 digits in N-NNN-NNN format. If the string does -not fulfill the condition, print "". +by space and 7 digits in N-NNN-NNN format. If the string fulfills the condition, print "yes", otherwise "no". UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 20.