Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.025 s | 7 KBi |
#2 |
Correcto
|
0.041 s | 7 KBi |
#3 |
Correcto
|
0.075 s | 34 KBi |
#4 |
Correcto
|
0.02 s | 6 KBi |
#5 |
Correcto
|
0.025 s | 7 KBi |
#6 |
Correcto
|
0.02 s | 6 KBi |
#7 |
Correcto
|
0.02 s | 7 KBi |
#8 |
Correcto
|
0.028 s | 7 KBi |
#9 |
Correcto
|
0.02 s | 6 KBi |
#10 |
Correcto
|
0.031 s | 6 KBi |
#11 |
Correcto
|
0.02 s | 6 KBi |
#12 |
Correcto
|
0.061 s | 16 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'); })();