Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.028 s | 3 KBi |
#2 |
Incorrecto
|
0.029 s | 3 KBi |
#3 |
Incorrecto
|
0.041 s | 6 KBi |
#4 |
Incorrecto
|
0.026 s | 3 KBi |
#5 |
Incorrecto
|
0.032 s | 3 KBi |
#6 |
Incorrecto
|
0.034 s | 3 KBi |
#7 |
Incorrecto
|
0.035 s | 3 KBi |
#8 |
Incorrecto
|
0.032 s | 7 KBi |
#9 |
Incorrecto
|
0.031 s | 3 KBi |
#10 |
Incorrecto
|
0.036 s | 3 KBi |
#11 |
Incorrecto
|
0.034 s | 3 KBi |
#12 |
Incorrecto
|
0.03 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 """ 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()