Tomorrow is Code Jam's first round. Code Jam. I hope that will be good problems and two hours and thirty minutes will be enough to solve problems :))) Goodluck everybody :)))
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 151 |
Tomorrow is Code Jam's first round. Code Jam. I hope that will be good problems and two hours and thirty minutes will be enough to solve problems :))) Goodluck everybody :)))
Name |
---|
Is number of the participants too much?
What is the solution for C-large?
I wonder what is the probability that the solution is unique?
Apply Bayes' theorem to find vector which maximize posterior probability
How to approach B large.I wasn't getting any intuition from the problem description.Trying out few test cases did gave some pointers but that was not enough to solve it in time.
Suppose we had
Unable to parse markup [type=CF_TEX]
and we were standing at the beginning, that is v1.If
Unable to parse markup [type=CF_TEX]
, then spending more than R in v1 would be wrong right? And at least we should spend R (rememberUnable to parse markup [type=CF_TEX]
), because we will recover it anyway before getting to v2. This happens because we would rather (greedily) spend energy in v2 than in v1, and spend the "excess" (due to the fact that energy never exceeds E) in v1.Now, suppose
Unable to parse markup [type=CF_TEX]
, butUnable to parse markup [type=CF_TEX]
, then again, spending more thanUnable to parse markup [type=CF_TEX]
would be wrong, so we spend 2R (actuallyUnable to parse markup [type=CF_TEX]
, because we can recover the full E by the time we get to v3) in v1, and move on to v2.Try to complete the idea ;P
Кто-нибудь знает какие есть хитрые баги в B-large? У меня она упала на контесте, но сейчас тот же самый код зашел в дорешивании. Решение — стандартное жадное.