dfgf
This commit is contained in:
parent
e4c77e7be3
commit
578b11af9c
0
TaskD03/Makefile
Normal file
0
TaskD03/Makefile
Normal file
16
TaskD03/run
Executable file
16
TaskD03/run
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import sys
|
||||
import re
|
||||
|
||||
for input in sys.stdin.readlines():
|
||||
answer = re.findall('([\W]|^)[a-ząćęłńóśźż][\w]*',input)
|
||||
if answer:
|
||||
print(str(len(answer))+" ", end="")
|
||||
else:
|
||||
print("0 ", end="")
|
||||
answer = re.findall('([\W]|^)[A-ZĄĆĘŁŃÓŚŹŻ][\w]*',input)
|
||||
if answer:
|
||||
print(str(len(answer)))
|
||||
else:
|
||||
print("0")
|
Loading…
Reference in New Issue
Block a user