diff --git a/TaskB04/B04.py b/TaskB04/B04.py new file mode 100644 index 0000000..2e73da8 --- /dev/null +++ b/TaskB04/B04.py @@ -0,0 +1,12 @@ +import re +import sys + + +def line_contain_digits(line): + return re.findall('\d+', line) + + +for line in sys.stdin: + if line_contain_digits(line): + string = " " + print(string.join(line_contain_digits(line)).rstrip('\n')) diff --git a/TaskB04/Makefile b/TaskB04/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskB04/run b/TaskB04/run new file mode 100755 index 0000000..83201d7 --- /dev/null +++ b/TaskB04/run @@ -0,0 +1,2 @@ +#!/bin/bash +python3 TaskB04/B04.py "$@" \ No newline at end of file diff --git a/result.csv b/result.csv index 5f64e8f..bd83fb6 100644 --- a/result.csv +++ b/result.csv @@ -1,2 +1,2 @@ POINTS -9 +10