Hi there!
Tomorrow at 19:00 MSK will be held TCO15 Round 1C.
It is the last chance to advance to next stage.
The max. number of competitors is 2500. 750 of them advances to next stage.
Let's discuss problems after contest.
# | 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 |
9 | nor | 153 |
Hi there!
Tomorrow at 19:00 MSK will be held TCO15 Round 1C.
It is the last chance to advance to next stage.
The max. number of competitors is 2500. 750 of them advances to next stage.
Let's discuss problems after contest.
Name |
---|
No Parallel Round?
What's the method for the last problem?
Pretty simple dp problem.
Dp with 4 parameters: dp[i][b][prev][len] — number of strings with length i having beauty b, last symbol prev and the length of suffix like 010101010 or 10101010 is len.
There are solutions with 3 and 2 parameters, but the one with 4 parameters is the simpliest
Could someone explain as to how the solution to 450 was simply the number of leaves in the tree?
Consider any path. When this path is included in the answer, a set of nodes can no longer be included. This always includes one or more leaves. Hence including each path makes 1 or more leaves ineligible for further inclusion. Hence the number of leaves is an upper bound on the answer. The way to realize this upper bound is to select all the leaves as 1 node paths.
Got it! thanks
I missed definition of Path in second problem, thus couldn't figure out for 15 minutes how Example 1 is possible. Path consisting of one node was not very canonical.
This was first round since last summer on Topcoder, so I had nice rating increase from 1375 to 1430. I think I should try shooting for yellow.
I solved 1000 using dp in O(cnt.n2). Is there any better solution ?