A higher resolution is required to access the IDE
- 222
Statement
Goal
You are given a line of text and a "string format". The format seems to be heavily inspired from LIKE clauses from SQL and uses two special characters,Any other characters: Matches exactly that character.
It seems that the format does not include escaping special characters (good for you!) so
The text is considered to
Input
Line 1: Text, a String
Line 2: Format, a String
Line 2: Format, a String
Output
One of either MATCH or FAIL , depending on whether Format describes Text fully.
Constraints
Text, Format are both composed of ASCII characters only
0 < Length of Text < 1000
0 < Length of Format < 100
0 < Length of Text < 1000
0 < Length of Format < 100
Example
Input
Clash of Code ~ of ~
Output
MATCH
A higher resolution is required to access the IDE