S1. Ragaman
의견: 0
An anagram of a string is formed by rearranging
the letters in the string. For example, the anagrams of
aab are aab,
aba, and baa.
A wildcard anagram of a string is an anagram of
the string where some of the letters might have been replaced with an
asterisk (). For example, two possible wildcard anagrams of
aab are ab and
b**.
Given two strings, determine whether the second string is a wildcard
anagram of the first string.
\((1 \leq N \leq 100)\)
The two lines of input will both consist of \(N\) \((1 \leq N \leq 100)\) characters. Each character in the first line will be
a lowercase letter. Each character in the second line will be either a
lowercase letter or an asterisk.
For 8 of the 15 available marks, the second line will not contain any
asterisk characters.
Output the character A if the string on the
second line is a wildcard anagram of the string on the first line.
Otherwise, output the character N.
abba
baaaNcccrocks
socc*rk*A평가 및 의견
S1. Ragaman
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
S1. Ragaman