diff --git a/TaskC20/description.txt b/TaskC20/description.txt index 0895ddd..116d174 100644 --- a/TaskC20/description.txt +++ b/TaskC20/description.txt @@ -14,6 +14,11 @@ 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ć "". +For each string, extract 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 "". + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 20. diff --git a/TaskC21/description.txt b/TaskC21/description.txt index e8b325b..e1bb103 100644 --- a/TaskC21/description.txt +++ b/TaskC21/description.txt @@ -16,6 +16,12 @@ telefonie ("ABC" - 2, "DEF" - 3 itd.) Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string consists of 5 capital letters +and 4 lower case letter separated by space, which written on +an old cell phone keyboard gives the same number as typing "HORSE HEAD". +We assume standard old phone keyboard mapping ("ABC" - 2, "DEF" - 3, etc.) +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 21. diff --git a/TaskC22/description.txt b/TaskC22/description.txt index b0e5680..27976f3 100644 --- a/TaskC22/description.txt +++ b/TaskC22/description.txt @@ -14,6 +14,10 @@ liczba bramek wynosi 10. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string stands for a soccer match result +(two numbers separated by a colon). The Maximum (sum of two teams) number of goals is 10. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 22. diff --git a/TaskC23/description.txt b/TaskC23/description.txt index 715bd63..bb5c46c 100644 --- a/TaskC23/description.txt +++ b/TaskC23/description.txt @@ -13,6 +13,11 @@ tzn. jest postaci typu "45 lat". Maksymalny wiek - 99 lat. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string stands for human age (is in +form of "45 lat"). The maximum age is 99 years. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 23. diff --git a/TaskC24/description.txt b/TaskC24/description.txt index fe7ebbf..a021d2b 100644 --- a/TaskC24/description.txt +++ b/TaskC24/description.txt @@ -15,6 +15,13 @@ kończyć się na "a". Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string stands for the first name and last name +of a man. First name and last name are at least two character string +starting with the capital letter, followed by lower case letter. +Additionally, the First name can not finish with "a". +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 24. diff --git a/TaskC25/description.txt b/TaskC25/description.txt index e67e016..5d09d14 100644 --- a/TaskC25/description.txt +++ b/TaskC25/description.txt @@ -15,6 +15,12 @@ się na "a". Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string stands for the first name and last name +of a woman. First name and last name are at least two character string +starting with the capital letter, followed by lower case letter. +Additionally, the First name must finish with "a". +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 25. diff --git a/TaskC26/description.txt b/TaskC26/description.txt index eba9a0d..7959d36 100644 --- a/TaskC26/description.txt +++ b/TaskC26/description.txt @@ -14,6 +14,12 @@ mogą opcjonalnie zaczynać się plusem. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string is an integer. +The number should not contain leading zeros. Positive numbers +can optionally start with a plus character. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 26. diff --git a/TaskC27/description.txt b/TaskC27/description.txt index 4e7ae14..4726fbd 100644 --- a/TaskC27/description.txt +++ b/TaskC27/description.txt @@ -14,6 +14,12 @@ nieznaczących. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string check, if the given string stands for +non-negative integer lower than 143. The number should not +contain leading zeros. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 0. diff --git a/TaskC28/description.txt b/TaskC28/description.txt index 9be9278..11facf9 100644 --- a/TaskC28/description.txt +++ b/TaskC28/description.txt @@ -14,6 +14,12 @@ kropkami. Każdy człon to ciąg małych liter. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string stands for a domain name. +We assume, that the domain names consist of 2 or 3 digits +separated by dots. Every element is a sequence of lower case letters. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 1. diff --git a/TaskC29/description.txt b/TaskC29/description.txt index bcff878..27c54dd 100644 --- a/TaskC29/description.txt +++ b/TaskC29/description.txt @@ -13,6 +13,11 @@ Dla każdego napisu należy sprawdzić, czy napis jest identyfikatorem Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string is an id (sequence of letters, digits +and underscores starting with a digit). +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 2. diff --git a/TaskC30/description.txt b/TaskC30/description.txt index ab61f63..53ee0e6 100644 --- a/TaskC30/description.txt +++ b/TaskC30/description.txt @@ -13,6 +13,11 @@ zakresu od -49 do 49. Liczba nie powinna zawierać zer nieznaczących. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string is an integer from -49 to 49. +The integer should not contain leading zeros. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 3. diff --git a/TaskC31/description.txt b/TaskC31/description.txt index 9fe70a4..0d74a3e 100644 --- a/TaskC31/description.txt +++ b/TaskC31/description.txt @@ -14,6 +14,11 @@ dokładnie jedną samogłoskę. Należy uwzględnić małe litery alfabetu Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string is an expression containing +exactly one vowel. You should consider lower case Latin alphabet letters. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 4. diff --git a/TaskC32/description.txt b/TaskC32/description.txt index c604222..98a3b52 100644 --- a/TaskC32/description.txt +++ b/TaskC32/description.txt @@ -14,6 +14,12 @@ nieznaczących). Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string stands for an amount of dollar, +starting with a dollar character followed by a positive integer +(with no leading zeros). +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 5. diff --git a/TaskC33/description.txt b/TaskC33/description.txt index 9cb073b..931c43c 100644 --- a/TaskC33/description.txt +++ b/TaskC33/description.txt @@ -14,6 +14,11 @@ obie litery równocześnie. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string check, if the string is a non-empty sequence of letters +A, G, C, T, U. In one sequence, there can be T or U, but not bout simultaneously. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 6. diff --git a/TaskC34/description.txt b/TaskC34/description.txt index 43403cb..3692420 100644 --- a/TaskC34/description.txt +++ b/TaskC34/description.txt @@ -14,6 +14,12 @@ muszą wystąpić przynajmniej 3 razy. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, if the string is "hmmm....." - 'm' occurs +two times or more. Dots are optional, but if occur, they must +occur at least 3 times. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 7. diff --git a/TaskC35/description.txt b/TaskC35/description.txt index 8cea7e6..c52eb77 100644 --- a/TaskC35/description.txt +++ b/TaskC35/description.txt @@ -14,6 +14,12 @@ opcjonalny ciąg wykrzykników. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string is singing, this is +sequence of syllables "li", "la", "lo" (at least 2), followed +by an optional sequence of exclamation marks. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 8. diff --git a/TaskC36/description.txt b/TaskC36/description.txt index 6e14114..8cac3f6 100644 --- a/TaskC36/description.txt +++ b/TaskC36/description.txt @@ -13,6 +13,10 @@ godzinę w formacie typu "9:13", "18:44" wyciąga minuty. Funkcja powinna zwracać napis "", jeśli podany napis nie jest godziną. Jeśli napis nie spełnia podanych warunków, należy wypisać "". +For each string, extract the minutes from the given string represented +by time in "9:13", "18:44" format. The function should return "" +string, if the string is not a time. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 27 z resztą 9. diff --git a/TaskC37/description.txt b/TaskC37/description.txt index e93ce54..f73d169 100644 --- a/TaskC37/description.txt +++ b/TaskC37/description.txt @@ -14,6 +14,12 @@ lub plusem. Pozostała część numeru to 7 cyfr zapisanych w postaci N-NNN-NNN bądź NNN-NN-NN. Jeśli napis nie spełnia podanych warunków, należy wypisać "". +For each string, extract an area code from the phone number. +We assume, that the phone number is two digits, is preceded by zero or plus. +The rest of the phone number is 7 digits written in N-NNN-NNN +or NNN-NN-NN form. +If the string does not fulfill the condition, you should print "". + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 7 z resztą 2. diff --git a/TaskC38/description.txt b/TaskC38/description.txt index 0cddecc..470b659 100644 --- a/TaskC38/description.txt +++ b/TaskC38/description.txt @@ -15,6 +15,14 @@ napisem " m. "). Nazwa ulicy składa się z co najmniej 2 liter (łącznie z polskimi znakami), zaczyna się wielką literą. Jeśli napis nie spełnia podanych warunków, należy wypisać "". +For each string, you should extract the building number from the address. +We assume, that the address consists of the abbreviation "ul.", "os.' or "al." +street name, building name, and an optional number of apartment number +(separated from building number by a slash or " m. ". The street number +consists of at least 2 letters (including polish letters), starting with +the capital letter. +If the string does not fulfill the condition, you should print "". + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 7 z resztą 3. diff --git a/TaskC39/description.txt b/TaskC39/description.txt index ef21ed0..f685962 100644 --- a/TaskC39/description.txt +++ b/TaskC39/description.txt @@ -13,6 +13,11 @@ przy czym zakładamy, że kod PIN może zawierać co najwyżej jedno zero. Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string is 6 digit PIN number. +We assume that the PIN number can contain at most one zero. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 7 z resztą 4. diff --git a/TaskC40/description.txt b/TaskC40/description.txt index 037d163..bd0c557 100644 --- a/TaskC40/description.txt +++ b/TaskC40/description.txt @@ -14,6 +14,13 @@ tzn. jest postaci typu "45 lat", przy czym dla pierwszych lat wyjątkowo - Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string is an age of human, +this is the form of "45 lat". For the first years, exceptionally - +"1 roczek", "2 latka", "3 latka", "4 latka". The maximum age is 110 years. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 7 z resztą 5. diff --git a/TaskC41/description.txt b/TaskC41/description.txt index 79384bd..8008078 100644 --- a/TaskC41/description.txt +++ b/TaskC41/description.txt @@ -14,6 +14,11 @@ Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string, check if the string is an age of human, +this is the form of "45 lat". The maximum age is 123 years. +If the string fulfills the condition, you should print 'yes' on the +standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 7 z resztą 6. diff --git a/TaskC42/description.txt b/TaskC42/description.txt index 909fed8..ef09c50 100644 --- a/TaskC42/description.txt +++ b/TaskC42/description.txt @@ -15,6 +15,12 @@ http://tvtropes.org/pmwiki/pmwiki.php/Main/BigNo Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string check, if the string is "NIE" or "NO", +where "E" or "O" occurs at least 6 times, followed by at least 3 +exclamation marks. Check +http://tvtropes.org/pmwiki/pmwiki.php/Main/BigNo +If the string fulfills the condition, you should print 'yes' on the standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 7 z resztą 0. diff --git a/TaskC43/description.txt b/TaskC43/description.txt index de46bf6..964a37f 100644 --- a/TaskC43/description.txt +++ b/TaskC43/description.txt @@ -17,6 +17,15 @@ http://knowyourmeme.com/memes/the-1-phenomenon Jeśli napis spełnia tak określony warunek, należy wypisać na standardowym wyjściu 'yes', w przeciwnym razie — 'no'. +For each string check, if the string is a sequence +of letters (including polish letters), followed by a sequence +of exclamation marks, instead of which, there may be +"1", "one" or "eleven". In the string, there must be at least +2 exclamation marks, not necessarily next to each other, +at least one "1", "one" or "eleven". Check +http://knowyourmeme.com/memes/the-1-phenomenon +If the string fulfills the condition, you should print 'yes' on the standard output and 'no' otherwise. + UWAGA! Zadanie przeznaczone dla studentów, których numer indeksu dzieli się przez 7 z resztą 1.