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 1005. Stone Pile

Solution without brute force
Posted by Oleksii Kavka 12 Jan 2016 20:35
How to solve it without of using brute force? It works, but, I've heard, there is better solution.
Re: Solution without brute force
Posted by Cobalt 17 Jan 2016 02:12
Use the bit mask
Re: Solution without brute force
Posted by Felix_Mate 20 Jan 2016 11:40
I solved with dp[i,j]