cf/mirror

Single Wildcard Pattern Matching

CF
1023A1200· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
6 10
code*s
codeforces
Output
YES
Sample 2of 4
Input
6 5
vk*cup
vkcup
Output
YES
Sample 3of 4
Input
1 1
v
k
Output
NO
Sample 4of 4
Input
9 6
gfgf*gfgf
gfgfgf
Output
NO
1023A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)