diff --git a/TaskE00/description.txt b/TaskE00/description.txt new file mode 100644 index 0000000..e6986d9 --- /dev/null +++ b/TaskE00/description.txt @@ -0,0 +1,36 @@ +Liczby podzielne przez 5 +======================== + +Napisać program, który wczytuje kolejne wiersze ze standardowego +wejścia i analizuje każdy wiersz (bez znaku końca wiersza). Należy w +jak największym stopniu wykorzystać wyrażenia regularne (np. nie wolno +użyć negacji jako operacji w danym języku programowania, jeśli da się +to wyrazić w samym wyrażeniu regularnym). Tam, gdzie to możliwe należy +użyć pojedynczego wyrażenia regularnego. + +Write a program, which loads consecutive lines from standard input +and analyze every line (with no newline character). You should +use regular expressions to the greatest extent possible (e.g. you +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 sprawdzić, czy zadany napis jest liczbą całkowitą +podzielną przez 5. Napis nie powinien 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 given string is an integer divisible by 5. +The string 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 10 z resztą 0. + +Attention. The task is for students whose students id remainder of the division by 10 is 0. + +POINTS: 1 +DEADLINE: 2021-12-04 23:59:59 +REMAINDER: 0/10 diff --git a/TaskE00/test.exp b/TaskE00/test.exp new file mode 100644 index 0000000..408e922 --- /dev/null +++ b/TaskE00/test.exp @@ -0,0 +1,10 @@ +yes +yes +no +yes +no +no +yes +no +yes +no diff --git a/TaskE00/test.in b/TaskE00/test.in new file mode 100644 index 0000000..576dd87 --- /dev/null +++ b/TaskE00/test.in @@ -0,0 +1,10 @@ +-1005 +-50 +-76 +0 +00 +01000 +1000 +353 +465 +@!q