Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- def reshat_matan(intoxication):
- intoxication = intoxication if intoxication < 50 else 50
- return True if randint(0, 120 - intoxication // 10) > 50 else False
- intoxication = randint(0, 15)
- intoxication += 10 if intoxication < 12 else 0
- count_task = 0
- while intoxication < 100:
- if reshat_matan(intoxication):
- count_task += 1
- print('Задача {} решена!'.format(count_task))
- else:
- intoxication += randint(0, 25)
- if count_task >= 18:
- print('Матан решён')
- else:
- print('Вы напились. Поздравляю, у вас цирроз печени')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement