题解 | #字符串字符匹配#
字符串字符匹配
http://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
let shortStr = null;
while(shortStr = readline()) {
let longStr = readline();
let result = 'true';
for(let i = 0; i < shortStr.length; i++) {
if(!longStr.includes(shortStr[i])) {
result = 'false';
break;
}
}
console.log(result);
}
while(shortStr = readline()) {
let longStr = readline();
let result = 'true';
for(let i = 0; i < shortStr.length; i++) {
if(!longStr.includes(shortStr[i])) {
result = 'false';
break;
}
}
console.log(result);
}