jfz-2023-s464983/TaskE43/description.txt

45 lines
2.0 KiB
Plaintext

Mem 1
=====
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 to ciąg liter
(uwzględnić też polskie znaki) po którym następuje ciąg wykrzykników
zamiast których może wystąpić "1", "one" albo "eleven". W napisie muszą
pojawić się co najmniej 2 wykrzykniki, niekoniecznie obok siebie oraz co
najmniej jedno "1", "one" lub "eleven". Zob.
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.
Attention. The task is for students whose students id remainder of the division by 7 is 1.
POINTS: 1
DEADLINE: 2021-12-04 23:59:59
REMAINDER: 1/7