I tried this problem using segment tree but it's getting TLE. Can anybody explain how to remove TLE from this code?
Solution : https://pastebin.com/8iuk4mQp
Problem : http://www.spoj.com/problems/PATULJCI/
TLE IN SPOJ PATULJCI
I tried this problem using segment tree but it's getting TLE. Can anybody explain how to remove TLE from this code?
Solution : https://pastebin.com/8iuk4mQp
Problem : http://www.spoj.com/problems/PATULJCI/
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en1 |
|
JacobianDet | 2018-05-19 14:07:29 | 231 | Initial revision (published) |