Task: | Sanalista |
Sender: | Lookas123 |
Submission time: | 2020-09-29 19:02:30 +0300 |
Language: | Node.js |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | RUNTIME ERROR | 0 |
test | verdict | time | |
---|---|---|---|
#1 | RUNTIME ERROR | 0.43 s | details |
#2 | RUNTIME ERROR | 0.43 s | details |
#3 | RUNTIME ERROR | 0.43 s | details |
Code
const readline = require('readline'); const r = readline.createInterface({ input: process.stdin, output: process.stdout, terminal: false }); function doubles(str){ let foundletters=[]; for(let i of str) { if(foundletters.includes(i)){ foundletters.splice(foundletters.indexOf(i),1); } else{ foundletters.push(i); } } return Number(foundletters==[]) } const lines = r.readline(1) let workinglines; for(let i = 0; i<lines; i++){ workinglines += Number(doubles(String(r.readline(i+1)))); } console.log(workinglines);
Test details
Test 1
Verdict: RUNTIME ERROR
input |
---|
1000 korvata sopimusaika nuhatartunta korttiautomaatti ... |
correct output |
---|
15 |
user output |
---|
(empty) |
Error:
/box/input/code.js:20 const lines = r.readline(1) ^ TypeError: r.readline...
Test 2
Verdict: RUNTIME ERROR
input |
---|
1000 pub hansikaslokero erikoisvalmisteinen unijukka ... |
correct output |
---|
42 |
user output |
---|
(empty) |
Error:
/box/input/code.js:20 const lines = r.readline(1) ^ TypeError: r.readline...
Test 3
Verdict: RUNTIME ERROR
input |
---|
1000 haapalastu toipumisaika mustalaiskieli taidelainaamo ... |
correct output |
---|
70 |
user output |
---|
(empty) |
Error:
/box/input/code.js:20 const lines = r.readline(1) ^ TypeError: r.readline...