Because of the Codeforces Round 273 (Div. 2) the training contest 2014-2015 CT S02E06: Codeforces Trainings Season 2 Episode 6 - 2007 Benelux Algorithm Programming Contest (BAPC 2007) will be moved one day forward.
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3741 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3489 |
7 | Radewoosh | 3483 |
8 | Kevin114514 | 3442 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | atcoder_official | 162 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | nor | 150 |
Because of the Codeforces Round 273 (Div. 2) the training contest 2014-2015 CT S02E06: Codeforces Trainings Season 2 Episode 6 - 2007 Benelux Algorithm Programming Contest (BAPC 2007) will be moved one day forward.
Name |
---|
How to register for this?
commented because of being misinformed please ignore
Before registration: 10+ hours. Before contest: 16+ hours. Everyone has to register, but the registration will open 6 hours before the contest.
Xellos i apologize but what i meant was that one can register for the contest even during the contest is going on. I should have said that there is no prior registration deadline my bad, sorry again.
is the statement in English?
No its in chinese. rock on!!
cant see the contest
add me i am block.
in russian interface i can see the gym contest but on the english one i can't
you are absolutely right. you are my friend.
How about problems language?
How to solve C?
For C: First you need to make everything integers. Do this by multiply everything with 100. Now, because dividing the notes by 2 is always better, let's just do that. --> Then the problem becomes, given a set of notes, check if you can use these notes to make certain sum (note that you can subtract). In math, this is check if an integer S can be represented as:
x1 * c1 + x2 * c2 + ...
for some constants c1, c2, ...
Now this is application of congruence equation, which to check if there is a solution, you just need to check if everything is divisible by gcd.
Edit: I mistakenly write solution for E here. (and get -10 :( )
For E: use inclusion exclusion principle and bitmask to iterate over all sets.
How to solve H? Thanks :)
Let's create a set of interesting points. We add to this set start and end points. Also let's consider all pairs of towers. Let's look at intersection points of two circles with centers in this towers. If such point isn't covered by any other circle, we add it to our set.
Now for each pair of points in set we should find if we can go directly between them. So we just intersect this segment with all circles and look if all points in this segment is covered by at least one circle.
And now we can use dijkstra on this points to find a shortest distance.
P. S. I don't know how to prove that this algorithm works/works fast enough.
Can somebody explain why groningen is the second in a sample in I?
P.S Thanks to Metamorphus and arystan_kalimov for explanations.
How to solve A? It seemed like we had to store cumulative weights over paths and then use lowest common ancestor. Can someone share their code?
It is simpler than that ... It is just every edge in the tree acts like a bridge dividing the tree into to disconnected parts ... So the path from any node in the first part to any node in the second part will use that edge.
Ok! Thanks.
My solution for most problem + qwerty787788's solution for H (copy from comment above just for completeness: link
Does anyone have the PDF file with solution outlines?