Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
# | 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 |
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 ?