Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
# | 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 | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
Name |
---|
In problem E, first I solved it using segment tree after iterating in two loops but I got TLE.
Then I replaced the segment tree with a liner search and I got ACC. How did that happen?
This is my first submission (31286366) which had TLE. My second submission (31286415) which passed.
F — good demonstration of overkill in using suffix array.
It is most powerful suffix structure, but anyway it needs additional lcp array, prefix sums array, stack...
Suffix automaton is better here, bcs its need only... one array cnt[]!
GL, kids.
Edit: Please ignore!
can someone please explain me E ! I didn't understand how to keep all the three maximum possible at a time. if we want to maximize the first one we can (just give 2 to smallest and rest with 1) but this is not the case here !
please help me !
The first two numbers are fixed, when you do these two loops. You just have to choose the third number maximum possible.
Isn't this problem similar to 1278C - Berry Jam ?