|
@@ -17,16 +17,11 @@ async function main() {
|
|
} else
|
|
} else
|
|
if (stringSplit[info2[0]] !== info[1] && stringSplit[info2[1]] !== info[1]) {
|
|
if (stringSplit[info2[0]] !== info[1] && stringSplit[info2[1]] !== info[1]) {
|
|
invalid.push(element)
|
|
invalid.push(element)
|
|
- } else
|
|
|
|
- if (stringSplit[info2[0]] !== info[1]) {
|
|
|
|
- invalid.push(element)
|
|
|
|
- } else
|
|
|
|
- if (stringSplit[info2[0]] !== info[1] && stringSplit[info2[1]] === info[1]) {
|
|
|
|
- invalid.push(element)
|
|
|
|
- }
|
|
|
|
|
|
+ } else {
|
|
|
|
+ console.log(element)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
let answer = data.length - invalid.length
|
|
let answer = data.length - invalid.length
|
|
- console.log(answer)
|
|
|
|
|
|
+ console.log('Valid ' + answer)
|
|
}
|
|
}
|
|
-
|
|
|
|
main()
|
|
main()
|