Hello everyone,
I'm currently trying to solve problem PIGBANK using dynamic programming in Haskell. However even after optimizing the code even with obscure and efficient Data Types such as Data.ByteString for I/O, I'm still getting TLE. I saw there were several users that have solved the problem in Haskell, so it has to be possible.
¿Could sameone please tell me what the bottleneck could be for this problem? My Java version gets AC even using Scanner, which is very slow. So I really don't know what it could be. If you'd like, I could post my code here.
Thanks in advance!