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 1015. Test the Difference!

who can show me the optimal memory strategy?
Posted by AlainDelon 18 Nov 2007 20:41
I got AC but used lots of memory.

currently I use a very large lookup table such as

int hash[7][7][7][7][7][7] for look up a given dice's scheme

what's the optimal approach that can minimize the memory usage and also get 0.001s time result?

Thanks!