ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1508. Japanese Puzzle

why ML is too small?
Posted by Alex Tolstov (Vologda STU) 16 Aug 2009 01:38
It's neccesary to use dances with diamonds to get AC in java without ML =))

Recoursive DP and DFS gets ML12, but iterative DP and BFS with queue based on arrays gets AC.

I think that the same (Rec DP+DFS) solution in C++ can pass all tests without troubles..