Does anyone know the live standings of IZhO 2022?
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 166 |
2 | maomao90 | 163 |
2 | Um_nik | 163 |
4 | atcoder_official | 161 |
5 | adamant | 160 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | nor | 153 |
9 | Dominater069 | 153 |
Does anyone know the live standings of IZhO 2022?
Name |
---|
Today and tomorrow IZHO 2022
standings of day 1
Do you have the standings of Day 2?
standings of day 1 + day 2
How to solve A?
Given an array
a[1], ..., a[n]
. You can delete i-th element if2 * a[i] = a[i - 1] + a[i + 1]
. What's the minimal length of array after performing some operations?n <= 300000, 1 <= a[i] <= 10^9
Subtasks:
(14 points).
n <= 15
(13 points).
a[i] = i
(9 points).
a[i] <= 3
(17 points).
n <= 300
(18 points).
n <= 3000
(29 points). No additional constraints
+
DP on substrings
Let's look at the difference between adjacent elements.
Assume that $$$b_i = a_{i+1}-a_i$$$, and now our task will be to remove equal neighbors, and put the doubled value instead.
Now let's do some dynamic programming here, $$$dp_{l, r}$$$ — which determines whether we can remove a subarray $$$b_{l \dots r}$$$.
The observation is that, for the fixed $$$l$$$, there at most $$$log_2(n)$$$ such $$$r$$$. Hence, for each $$$l$$$, we can just maintain a set that stores those rightborders. Try to come up with transitions by yourself.
After calculating these $$$dp$$$ values, the problem can be solved with another dynamic programming. $$$d_i$$$ — minimal length of after performing operations on prefix $$$b_{1 \dots i}$$$. Answer to the problem will be $$$d_n$$$.
Thank you very much
Do you have the other tasks too?
IZHO 2022 day 1 problem A really difficult for me
Can anyone tell me IZHO 2022 day 1 problem B and problem C
Does anyone know the standings of IZhO 2022 day 2?
standings of day1 + day 2