Single Wildcard Pattern Matching
1023A1200· pupil1s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
6 10code*scodeforces
Output
YES
Sample 2of 4
Input
6 5vk*cupvkcup
Output
YES
Sample 3of 4
Input
1 1vk
Output
NO
Sample 4of 4
Input
9 6gfgf*gfgfgfgfgf
Output
NO
58%
1023A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)