Все задачи на 5.10.17 13:00
This commit is contained in:
9
uts/uts_2k17_march_py/Dun/H.py
Normal file
9
uts/uts_2k17_march_py/Dun/H.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import sys
|
||||
import re
|
||||
problem_name = str('patterns')
|
||||
sys.stdin = open(problem_name + ".in", "r")
|
||||
sys.stdout = open(problem_name+".out", "w")
|
||||
if re.compile(input().replace('*', '.*').replace('?', '.')).match(input()) != None:
|
||||
print('YES')
|
||||
else:
|
||||
print('NO')
|
||||
Reference in New Issue
Block a user