1990A — Submission Bait
1990B — Array Craft
1990C — Mad MAD Sum
1990D — Grid Puzzle
1990E2 — Catch the Mole(Hard Version)
Not a formal proof! (please explain the formal proof of the algorithm in the comment section if you know that)
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | turmax | 3559 |
| 6 | tourist | 3541 |
| 7 | strapple | 3515 |
| 8 | ksun48 | 3461 |
| 9 | dXqwq | 3436 |
| 10 | Otomachi_Una | 3413 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | adamant | 153 |
| 3 | Um_nik | 147 |
| 4 | Proof_by_QED | 146 |
| 5 | Dominater069 | 145 |
| 6 | errorgorn | 141 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | TheScrasse | 134 |
| 10 | chromate00 | 133 |
Not a formal proof! (please explain the formal proof of the algorithm in the comment section if you know that)
| Название |
|---|



Congrats for reaching 10K dude <3
Thank you bro <3
Why video editorial?
text editorials take time to complete , besides Shayan does some clean coding too , so its nice in the mean time.
The authors will prepare the text editorial.
Can someone please explain problem D? I understood everything in the editorial up until adding the second dimension to the dp array. I don't get that part, why do we add dp[i][j] where j can be {0,1,2,3}? And is there a way to solve this without adding this second dimension?
Problem D can be solved using greedy: https://mirror.codeforces.com/contest/1990/submission/271628945
The "A.Submission Bait" problem really lives up to its name
Problem D greedy solution with just 2 variables and one for loop: 271663296
Always color a 2x2 grid if the remaining area on a_i after a_i-1 is colored is <= 2, otherwise it is always optimal to color the entire row.
Same idea here, but tracking column indices instead: 271665697
taha you are amazing
What didn't you like about it? Maybe we can improve if u tell us so.
Shayan, could you please answer this.... for Problem D, dp[i][j], j={0,1,2,3} what is the j here ? , is it {00,01,10,11} where each boolean value tell us about the use of the 1st and 2nd 2x2 block in i_th row ?
Exactly. It shows the 4 possible ways for the 1st and the 2nd 2*2 block in the row number i.