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 | 3985 |
2 | jiangly | 3885 |
3 | jqdai0815 | 3682 |
4 | Benq | 3580 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3506 |
7 | ecnerwala | 3505 |
8 | Radewoosh | 3457 |
9 | Kevin114514 | 3377 |
10 | gamegame | 3374 |
# | User | Contrib. |
---|---|---|
1 | cry | 170 |
2 | -is-this-fft- | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 160 |
5 | djm03178 | 157 |
6 | Dominater069 | 156 |
7 | adamant | 153 |
8 | luogu_official | 152 |
8 | awoo | 152 |
10 | maomao90 | 148 |
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?