TOPIC

alguem pode me ajudar?

henriquevital00 asked 1 year ago

while True: cont = 0 a = input() ciclo = int(input()) cont+= a.count('W') if a[0] != 'W': cont +=1 for i in range(len(a)): if a[i] == 'W' and a[i+1:i+4] == 'R'*ciclo: cont +=1 print(cont)

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.