hello codeforces
this problem 917A - Монстр has only a greedy solution which is well explained in the editorial
however i want to introduce a Dynamic programming solution
O(N^4) DP solution :
[submission:34679276]
№ | Пользователь | Рейтинг |
---|---|---|
1 | ecnerwala | 3648 |
2 | Benq | 3580 |
3 | orzdevinwang | 3570 |
4 | cnnfls_csy | 3569 |
5 | Geothermal | 3568 |
6 | tourist | 3565 |
7 | maroonrk | 3530 |
8 | Radewoosh | 3520 |
9 | Um_nik | 3481 |
10 | jiangly | 3467 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
2 | adamant | 164 |
4 | TheScrasse | 159 |
4 | nor | 159 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 150 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
DP Workaround
hello codeforces
this problem 917A - Монстр has only a greedy solution which is well explained in the editorial
however i want to introduce a Dynamic programming solution
O(N^4) DP solution :
[submission:34679276]
Rev. | Язык | Кто | Когда | Δ | Комментарий | |
---|---|---|---|---|---|---|
en12 | AnasAbbas | 2018-02-14 23:25:24 | 4 | (published) | ||
en11 | AnasAbbas | 2018-02-14 23:23:03 | 6 | |||
en10 | AnasAbbas | 2018-02-14 23:20:24 | 20 | |||
en9 | AnasAbbas | 2018-02-14 23:17:47 | 32 | |||
en8 | AnasAbbas | 2018-02-14 23:14:46 | 6 | Tiny change: 'd bracket complexity' -> 'd bracket `\n\n`complexity' | ||
en7 | AnasAbbas | 2018-02-14 23:13:49 | 3 | Tiny change: 'd bracket ---complexity' -> 'd bracket complexity' | ||
en6 | AnasAbbas | 2018-02-14 23:12:51 | 90 | |||
en5 | AnasAbbas | 2018-02-14 23:07:57 | 2276 | |||
en4 | AnasAbbas | 2018-02-14 21:50:47 | 22 | Tiny change: '79276]\n\n\n\n' -> '79276]\n\n~~~~~\nint x,y\n~~~~~\n\n\n\n\n\n' | ||
en3 | AnasAbbas | 2018-02-14 21:50:17 | 29 | Tiny change: '79276]\n\n\n\n' -> '79276]\n\n~~~~~\nint x,y\n~~~~~\n\n\n\n\n\n' | ||
en2 | AnasAbbas | 2018-02-14 21:49:40 | 21 | |||
en1 | AnasAbbas | 2018-02-14 21:46:53 | 265 | Initial revision (saved to drafts) |
Название |
---|