题解 | #字符串字符匹配#
字符串字符匹配
http://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
let str; while(str = readline()){ let sum = 0; let longStr = readline(); let strArr = str.split(''); for(let v of strArr){ if(longStr.includes(v)){ sum++; } } console.log(sum==strArr.length?true:false) }