█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 4410

Problema 0x5c - Decir si hay una letra repetida

  • Autor: Dlopez94
  • Fecha: 2021-06-19 02:06:21 UTC (Hace casi 3 años)
Caso # Resultado Tiempo Memoria
#1
Correcto
0.038 s 3 KBi
#2
Correcto
0.019 s 3 KBi
#3
Error interno
No such file or directory @ rb_sysopen - /box/script.py
#4
Error interno
No such file or directory @ rb_sysopen - /box/script.py
#5
Correcto
0.018 s 3 KBi
#6
Correcto
0.026 s 3 KBi
#7
Correcto
0.022 s 7 KBi
#8
Correcto
0.048 s 6 KBi
#9
Correcto
0.035 s 6 KBi
#10
Correcto
0.033 s 3 KBi
#11
Error interno
No such file or directory @ rb_sysopen - /box/script.py
#12
Incorrecto
0.027 s 3 KBi
Puntos totales: 67 / 100

Código

a = []
answer = ''

a = list(input())

for index in range(len(a)):
    for search in a[index+1:len(a)]:
        if a[index] == search:
            answer = 'yes'
            print (answer)
            break
        else:
            continue
    if ((index == len(a)-1) and (answer == '' )):
        print('no')