题解 | #字符串字符匹配#
字符串字符匹配
https://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
const rl = require("readline").createInterface({ input: process.stdin });
var iter = rl[Symbol.asyncIterator]();
const readline = async () => (await iter.next()).value;
void async function () {
// Write your code here
while(line = await readline()){
let s1 = line; //保存短串
line = await readline();
let s2 = line; //保存长串
let included = s1.split('').every((c) => {
return s2.includes(c);
})
console.log(included);
}
}()
