From 0b458818d6efbd652bf59239d93acfe467900e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zofia=20B=C4=85czyk?= Date: Sun, 22 Nov 2020 15:07:15 +0100 Subject: [PATCH] atempt 1 --- TaskC40/Makefile | 0 TaskC40/run | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 TaskC40/Makefile create mode 100644 TaskC40/run diff --git a/TaskC40/Makefile b/TaskC40/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskC40/run b/TaskC40/run new file mode 100644 index 0000000..8b72aab --- /dev/null +++ b/TaskC40/run @@ -0,0 +1,9 @@ +#!/usr/bin/python3 + +import sys +import re + +for line in sys.stdin: + if re.match(r'(1\sroczek$)|([2-4]\slatka$)|([4]\slata$)|([5-9]\slat$)|([1][0-9]\slat$)|([2-9][0-1]\slat$)|([2-9][2-4]\slata$)|([2-9][5-9]\slat$)|([1][0][0-1]\slat$)|([1][0][2-4]\slata$)|([1][0][5-9]\slat$)|([1][1][0]\slat$)',line): + print("yes") + else: print("no")