nhjhhjjhirgre

This commit is contained in:
Kijowski Michał 2020-12-04 12:27:35 +01:00
parent a9eb8dab07
commit 99dac181e4
2 changed files with 14 additions and 0 deletions

0
TaskD00/Makefile Normal file
View File

14
TaskD00/run Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/python3
import sys
import re
for input in sys.stdin.readlines():
answer = re.findall('[0-9]{4}',input)
if answer:
spewuenic = input[:-1]
for num in answer:
spewuenic = re.sub(num, chr(ord(num[0])+49)+chr(ord(num[1])+49)+chr(ord(num[2])+49)+chr(ord(num[3])+49), spewuenic)
print(spewuenic)
else:
print(input[:-1])