Zadanie B04
This commit is contained in:
parent
9de4d8e4ac
commit
84628ae22e
12
TaskB04/B04.py
Normal file
12
TaskB04/B04.py
Normal 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
0
TaskB04/Makefile
Normal file
2
TaskB04/run
Executable file
2
TaskB04/run
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
python3 TaskB04/B04.py "$@"
|
@ -1,2 +1,2 @@
|
|||||||
POINTS
|
POINTS
|
||||||
9
|
10
|
||||||
|
|
Loading…
Reference in New Issue
Block a user