I got an idea of this problem.
First we reverse this string, then we use dp to find the LCS of these two strings. Using dp will take O(2n) space, but will use O(n^2) time. TLE! Is there anybody to help me? Thanks!
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | adamant | 152 |
| 3 | Proof_by_QED | 146 |
| 3 | Um_nik | 146 |
| 5 | Dominater069 | 144 |
| 6 | errorgorn | 141 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 9 | TheScrasse | 134 |
I got an idea of this problem.
First we reverse this string, then we use dp to find the LCS of these two strings. Using dp will take O(2n) space, but will use O(n^2) time. TLE! Is there anybody to help me? Thanks!
My friend Avench, is a very funny person. He is very heavy and beautiful. In our team, he is welcomed. We all love to play tricks on him. For instance, sometimes we ask him what his last name is. And he always becomes shy and tell us that his last name is "A'le'ni". So we call him "A'le'ni Wencheng". Because of his first name "Wencheng", we connect him with the Princess Wencheng in Tang Dynasty. And I posted a problem on "218.77.114.14:8080" Online Judge called "Princess WenCheng married the king of Tibet". You can try to solve it although it is very, very simple. In codeforces, his ID is "***". He loves beautiful girls. If you want to contact him, please tell me and I am glad to help you to tell him!!!
It's my first time to take part in the contest. It was so fun. The problem 4 has been hacked by someone, that was a pity. Neither data structure nor algorithm that I have used, I'm just a green hand.
| Name |
|---|


