nhjhhjjhirgre
This commit is contained in:
parent
a9eb8dab07
commit
99dac181e4
0
TaskD00/Makefile
Normal file
0
TaskD00/Makefile
Normal file
14
TaskD00/run
Executable file
14
TaskD00/run
Executable 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])
|
Loading…
Reference in New Issue
Block a user