Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.066 s | 6 KBi |
#2 |
Correcto
|
0.067 s | 10 KBi |
#3 |
Correcto
|
0.071 s | 10 KBi |
#4 |
Correcto
|
0.02 s | 7 KBi |
#5 |
Correcto
|
0.027 s | 6 KBi |
#6 |
Correcto
|
0.023 s | 7 KBi |
#7 |
Correcto
|
0.026 s | 6 KBi |
#8 |
Correcto
|
0.045 s | 6 KBi |
#9 |
Correcto
|
0.025 s | 6 KBi |
#10 |
Correcto
|
0.068 s | 6 KBi |
#11 |
Correcto
|
0.061 s | 6 KBi |
#12 |
Correcto
|
0.049 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'); })();