↓
 ↑
Регистрация
Имя/email

Пароль

 
Войти при помощи
Временно не работает,
как войти читайте здесь!

Комментарий к сообщению


Ereador Онлайн
7 сентября 2023
current_string = "O"*20
total = 0
ooor = 0
rrrr = 0
while "O" in current_string:
total += 1
if ("OOOR" in current_string) and not("RRRR" in current_string):
ooor += 1
if ("RRRR" in current_string) and not ("OOOR" in current_string):
rrrr += 1
ind = current_string.find("O")
current_string = "O"*ind + "R" + current_string[ind+1:]
print(ooor, rrrr)
print(ooor/(ooor+rrrr))
ПОИСК
ФАНФИКОВ











Закрыть
Закрыть
Закрыть