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 | 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 | 150 |
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 ?