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 : 34679276
# | User | Rating |
---|---|---|
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 |
# | User | Contrib. |
---|---|---|
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 |
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 : 34679276
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
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) |
Name |
---|