Zadanie B04

This commit is contained in:
s450026 2020-11-15 16:09:57 +01:00
parent 9de4d8e4ac
commit 84628ae22e
4 changed files with 15 additions and 1 deletions

12
TaskB04/B04.py Normal file
View File

@ -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'))

0
TaskB04/Makefile Normal file
View File

2
TaskB04/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
python3 TaskB04/B04.py "$@"

View File

@ -1,2 +1,2 @@
POINTS POINTS
9 10

1 POINTS
2 9 10