Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.029 s | 3 KBi |
#2 |
Incorrecto
|
0.034 s | 3 KBi |
#3 |
Incorrecto
|
0.034 s | 3 KBi |
#4 |
Incorrecto
|
0.033 s | 3 KBi |
#5 |
Incorrecto
|
0.033 s | 3 KBi |
#6 |
Incorrecto
|
0.029 s | 3 KBi |
#7 |
Incorrecto
|
0.024 s | 3 KBi |
#8 |
Incorrecto
|
0.037 s | 3 KBi |
#9 |
Incorrecto
|
0.028 s | 3 KBi |
#10 |
Incorrecto
|
0.036 s | 3 KBi |
#11 |
Incorrecto
|
0.035 s | 3 KBi |
#12 |
Incorrecto
|
0.027 s | 3 KBi |
""" 0x5c - Decir si hay una letra repetida """ def main(word=""): """ return 'yes' if the 'word' contains at least one repeated letter or 'no' if the 'word' doesn't contain any repeated letter """ if word == "": word = input() for letter in word: times = word.count(letter) if times > 1: return "yes" return "no" if __name__ == "__main__": print(main("codeo")) print(main("murcielagos")) else: main()