|
|
back to threadReply to message- Messages should be written in English and correspond to the matter of the website.
- Messages should not contain offences and obscene words.
- Messages should not contain correct solutions.
Some hints,look this after you have thought this problem by yourself. Posted by pyh119 5 Jul 2011 19:05 1.Use a DP with the O(30N) time 2.Use ternary (long long in C++ is needed) to indicate each solution 3.Use a rolling array in case it MLEs Good luck! ~_~ Edited by author 05.07.2011 19:05
|
|
|