Hello all
This is just a friendly reminder that TCO 2015 Round 1B starts soon.
For more info click here.
Enjoy!
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | adamant | 152 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 144 |
| 5 | errorgorn | 141 |
| 6 | cry | 139 |
| 6 | Proof_by_QED | 139 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
Hello all
This is just a friendly reminder that TCO 2015 Round 1B starts soon.
For more info click here.
Enjoy!
| Название |
|---|



Will there be a parallel round for ones who already advanced ?
It seems that there is no parallel round.
Great performance! :) (in previous revision)
I lost 20th place :\
My program fails when A contains one element
http://en.wikipedia.org/wiki/Humour
I don't get it.
What guy?
UPD: OK
Can someone explain the solution for problem B?
I can.
First let's find p[i] — the probability that a clue with index i is not found. How can we calculate this probability? Let's define array can[i][j]: can[i][j] is true if we can find clue with index j when the clue with index i is already found; and false otherwise.
This array can be calculated using Ford algorithm:
So, if we find clue j, such that can[j][i], then we also find clue i. After that, it's clear that p[i] equals to the product of (100 — probability[j]) / 100. over all possible values of j, such that can[j][i] equals to true
So, it can be calculated by the following code:
After that, answer is the sum of (1 — p[i]) over all i. It's clear because of the linearity of expected value.
Thank you for the explanation. I could not solve this question. Sorry my probability is really bad. Please clarify this doubt. "After that, it's clear that p[i] equals to the PRODUCT of (100 — probability[j]) / 100. over all possible values of j, such that can[j][i] equals to true."
Aren't the events independent? If can[j][i] ==true and also can[k][i] == true, then shouldn't the probability of 'i' not happening,
prob[i] = (1-prob[j]) + (1-prob[k]) ?
Please clarify why should it be a product but not a sum?
Yes, events are independent. We have 3 clues i, j, k. So, if you don't find clue i, and can[j][i] = true and can[k][i] = true, then you also should not find clue j and k both. So, p[i] = (1 — prob[i]) * (1 — prob[j]) * (1 — prob[k]).
Also, answer can't be sum. For example, prob[i] = 0 for all clues, and can[j][i] = true; p[i] = (1 — prob[j]) + (1 — prob[i]) = 2. But probability can't be larger than 1.
Ohh! Cool. thanks a lot. you are awesome.
The answer would not be sum of (1-p[i]) over all i?
Thankyou for solution :)
Can you suggest some good sources to understand Probability and Expected Value topic and Questions to practice?