ZCO Little Red Riding Hood

,

I am trying to solve this problem(CodeChef: Practical coding for everyone) This is the code I wrote

#include <iostream>#include <vector>#include <cmath>using namespace st - Pastebin.com

It fails on tasks 1, 3 and 7

Hi Archit;

Uncommented code is hard to comprehend, much like this solution which, however, works.

Hi,

Sorry I’ll comment the code soon. However I fixed it on my own - #include <iostream>#include <vector>#include <cmath> using namespace - Pastebin.com

Do you have a working solution for Rectangle? My code works fine but times out in the second sub task - #include <iostream>#include <vector>#include <algorithm>using namespace st - Pastebin.com

Hell guys, I am a naive coder, my question is, how to you guys think this dp algorithmn…it also becomes more tough for someone like me go thru such codes…and see what is happening actually, but once I get convinced with such solutions, I wonder how do you guys think in such dynamic manner, which I never ever imagined