can anyone please share his idea of solving problem 23E .
we are given a tree and we have to remove some edges from the tree (>=0) to maximize the product of sizes of connected components !
№ | Пользователь | Рейтинг |
---|---|---|
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 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
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 |
can anyone please share his idea of solving problem 23E .
we are given a tree and we have to remove some edges from the tree (>=0) to maximize the product of sizes of connected components !
can anyone please explain how this problem will reduce to 0/1 Knapsack problem after increasing each t[i] by 1?
why we are increasing t[i] by 1 ?
Anyone who has solved problem E , please explain his approach .
the editorial says that first calculate cost for first level rows then do recalculation, but how to do it ? its quite unclear.
Upd:
What I thought is.. Suppose we have processed upto row no. x optimally and now processing x+1.
The calculation for the current row will not change the optimality of the row till x.
If we use this observation for the 1st row , We can optimally calculate the optimal cost to repaint the first row and make it in the form ABABAB....
Now... I got stuck from the 2nd row onwards..
What should we do to calculate the optimal cost for repainting from 2nd row to last row.
How should we process the column elements for a particular row ?
Upd 2:
Sol.`
Anyone who solve problem 16E, can please share his ideas.There is no official solution of this round. link
in the announcement thread it is mentioned that it will be solved using state compression dp , but what is state compression dp and what will be the dp state for this question ?
anyone who solved this problem http://mirror.codeforces.com/problemset/problem/12/D , can please share his ideas.
i have read this blog http://mirror.codeforces.com/blog/entry/44775#comment-437643 , the explanation which is written by
@satyaki3794 , how will it fit in time limit ?
Can anyone who solved problem 7E share his ideas , how to solve it.
Название |
---|