From 7c46eeac38e61d79ab98ec432a744489b0c70152 Mon Sep 17 00:00:00 2001 From: kjubik Date: Mon, 6 Jan 2025 14:23:50 +0100 Subject: [PATCH] add solution for TaskC00 --- TaskC00_TODO/solution.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 TaskC00_TODO/solution.py diff --git a/TaskC00_TODO/solution.py b/TaskC00_TODO/solution.py new file mode 100644 index 0000000..aa34bba --- /dev/null +++ b/TaskC00_TODO/solution.py @@ -0,0 +1,9 @@ +import re +import sys + +for line in sys.stdin: + line = line.strip() + if re.match(r'^-?[1-9][0-9]*0$|^-?[1-9][0-9]*5$|^0$', line): + print('yes') + else: + print('no')