Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.064 s | 6 KBi |
#2 |
Correcto
|
0.07 s | 6 KBi |
#3 |
Correcto
|
0.065 s | 6 KBi |
#4 |
Correcto
|
0.059 s | 7 KBi |
#5 |
Correcto
|
0.066 s | 6 KBi |
#6 |
Correcto
|
0.057 s | 7 KBi |
#7 |
Correcto
|
0.056 s | 7 KBi |
#8 |
Correcto
|
0.06 s | 8 KBi |
#9 |
Correcto
|
0.073 s | 6 KBi |
#10 |
Correcto
|
0.068 s | 6 KBi |
#11 |
Correcto
|
0.067 s | 6 KBi |
#12 |
Correcto
|
0.054 s | 7 KBi |
const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); function hasRepeatedLetters(string){ const letters = string.split(''); const uniqueLetters = new Set(letters); return uniqueLetters.size !== letters.length; } rl.on("line", (line) => { console.log( hasRepeatedLetters(line) ? "yes" : "no" ); })