Цирунов Леонид, 528 группа PatternFind 6231
Абдул Гани Надим, 634 PatternFind 5365
n1def find_substring_by_pattern(source_str, pattern):n1def find_substring(input_string, template):
2    for i in range(len(source_str) - len(pattern) + 1):2    for i in range(len(input_string) - len(template) + 1):
3        flag = True3        found = True
4        for j in range(len(pattern)):4        for j in range(len(template)):
5            if pattern[j] != '@' and pattern[j] != source_str[i + j]:5            if template[j] != '@' and template[j] != input_string[i + j]:
6                flag = False6                found = False
7                break7                break
n8        if flag:n8        if found:
9            return i9            return i
10    return -110    return -1
t11print(find_substring_by_pattern(input(), input()))t11print(find_substring(input(), input()))
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op