I am having trouble at 828C - String Reconstruction , getting memory limit exceeded at this code 28500560 . Any help ? Thanks in Advance.
I am having trouble at 828C - String Reconstruction , getting memory limit exceeded at this code 28500560 . Any help ? Thanks in Advance.
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3611 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | dXqwq | 3436 |
| 8 | Radewoosh | 3415 |
| 9 | Otomachi_Una | 3413 |
| 10 | Um_nik | 3376 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 161 |
| 2 | adamant | 149 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 141 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 135 |
| 7 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | TheScrasse | 133 |
| Название |
|---|



Let's consider about this case:
1
1000000 aaaaaaa...aaaaaaa 1 2 3 4 5 ... 999998 999999 1000000 (string is length 1000000)
In this case your code puts 1000000 strings of length 1000000 in vector v, so your code uses 1000000*1000000 = 1TB. I think this is why the code is MLE.