Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.064 s | 7 KBi |
#2 |
Incorrecto
|
0.066 s | 6 KBi |
#3 |
Incorrecto
|
0.025 s | 7 KBi |
#4 |
Incorrecto
|
0.022 s | 7 KBi |
#5 |
Incorrecto
|
0.026 s | 6 KBi |
#6 |
Incorrecto
|
0.024 s | 7 KBi |
#7 |
Incorrecto
|
0.05 s | 7 KBi |
#8 |
Incorrecto
|
0.055 s | 7 KBi |
#9 |
Incorrecto
|
0.026 s | 7 KBi |
#10 |
Incorrecto
|
0.028 s | 7 KBi |
async function readInput() { let inputStr = ''; const rl = require('readline').createInterface({ input: process.stdin }); for await (const line of rl) { inputStr += line + '\n'; } inputStr = inputStr.substr(0, inputStr.length - 1); return inputStr; } (async () => { const input = await readInput(); let letters = []; for (i of input) { if (letters.includes(i)) { console.log('yes'); return; } letters += i; } console.log('no'); })();