Hello all
This is just a friendly reminder that TCO 2015 Round 1B starts soon.
For more info click here.
Enjoy!
# | User | Rating |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 156 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
Hello all
This is just a friendly reminder that TCO 2015 Round 1B starts soon.
For more info click here.
Enjoy!
Name |
---|
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?