I'm posting this blog so we can discuss the solutions to the problems of 2024 ICPC Latin America Championship
Link to the contest: https://mirror.codeforces.com/gym/105053
This is the final scoreboard: https://scorelatam.naquadah.com.br/pda24/
# | 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 | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | nor | 153 |
9 | Dominater069 | 153 |
I'm posting this blog so we can discuss the solutions to the problems of 2024 ICPC Latin America Championship
Link to the contest: https://mirror.codeforces.com/gym/105053
This is the final scoreboard: https://scorelatam.naquadah.com.br/pda24/
Name |
---|
Auto comment: topic has been updated by CarlosDaniel111 (previous revision, new revision, compare).
Hint for problem F?
Some hints for problem F:
Consider how giving blueprints to Alice and Bob will affect the DIFFERENCE in their heights.
You want the difference to be 0, so you either need to add or subtract each G, and add or subtract some multiple of each R, and you want to get to 0.
Imagine the positive and negative Gs add up to k. Can you add or subtract copies of different Rs to get to 0? Suppose the rs to choose from are 4 and 6. What possible ks can you reach?
You can hit any k that's a multiple of 2. Specifically, any k that's a multiple of gcd(4, 6).
Notice that the sum of ground floors is bounded. There's an algorithm called 0/1 knapsack which tells you all the possible sums you could have if you take 0 or 1 copy of each element.
Can anyone please describe me the t part of problem A ?
Hint for problem G?
Solution sketches can be found here.