# Discuss[Task] B/C 2 by Zodiak

#### Zodiakk

##### Newbie
Imagine that there is a lottery, you have 5 tickets, the chance that you will take one of the prize places (there are 10 of them) - 0.00000459%. There are 36 hours left before the lottery start. Each ticket costs 0.00000003 currency.
You have 0.00000423 currencies on your balance now, each hour you can fill in your currency to balance by one of the amounts by scrolling the lottery coins (You have an infinite number of them, but you can only twist once in one hour):
If you drop a number from 0 to 9885, you accrue 0.00000082 currencies to the balance.
The chance of falling out of these numbers is 85,0291%
At loss of number from 9886 to 9985 you are credited with 0.00000818 currencies to the balance.
The chance of falling out of these numbers is 10.0518%
When the number falls from 9986 to 9993, you accrue 0.00008177 currencies to the balance.
The chance of falling out of these numbers is 3.2910%
If you drop a number from 9994 to 9997, you will be credited with 0.00081766 currencies to the balance.
The chance of falling out of these numbers is 1.00914%
If you drop out the number from 9998 to 9999, you accrue 0.00817661 currencies to the balance.
The chance of falling out of these numbers is 0.616858%
At loss of number 10000 to you 0.08176615 currencies on balance are charged.
The chance of falling out of this number is 0.002102%

If your balance is fill even by 0.00000081, the chance of losing the last three numbers increases by 0.00001%,
And the chance of falling out of the first three numbers decreases by 0.00001%.

Question (s): How many tickets to buy for 1.0905111%, 2.0125000% chance of winning the lottery? If at the same time we have two variants of the development of events: 1. Which is described from above
2. If in addition to the first described option, every hour, along with the currency, you will be added two tickets. Questions for both options are same.

P.S. Sorry for my English, I'm Ukrainian. If you see an mistake in my text, please write about it in the subject.

Last edited:
Attention! Before you post:

99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

• Fill out the form correctly
• Tell us the game name & coding language