Hi,
My solution in C++ was giving WA while the same solution got AC in python.
In case you are down voting, please tell the reason as well.
| № | Пользователь | Рейтинг |
|---|---|---|
| 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 | 163 |
| 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 | soullless | 132 |
Hi,
My solution in C++ was giving WA while the same solution got AC in python.
In case you are down voting, please tell the reason as well.
| Название |
|---|



Auto comment: topic has been updated by hatim009 (previous revision, new revision, compare).
I'm pretty surprised that the same code in C++ and python didn't get compile error :)
On the more serious side, it seems that your array is too small in C++ solution.
Thanks for pointing out the mistake. C++ code also got AC
I'm pretty surprised that the same code in C++ and python didn't get compile error :)
Lol, you reminded me this.