spoj.pl/problems/SCUBADIV/
Trying to solve this problem.
Getting TLE
About my code
-Parsing input - Buffer reader
-DP
-Its working correct but not fast enough.
-Have tested it without main logic (just reading input,parsing,Initializing DP) and got WA in 1sec
Got AC :)
Thanks