11126 - Relaxed Golf
Moderator: Board moderators
11126 - Relaxed Golf
Few people have solved this problem. I am using only backtracking with memoization, could it be enough? I keep getting WA, time: 3.3 seconds. This time would be the best in the ranklist, that's why I hesitate if my implementation has a bug or my entire approach to the problem is non-sense.
"From lost to the river" --> Spanish quote
-
- Guru
- Posts: 1080
- Joined: Thu Dec 19, 2002 7:37 pm
I think that during the contest the memory limit was 64MB, so a 6^6*13*17 array of char could be used. But now the limit is only 32 MB. However you can store one dimension in six bits of the char, so a 6^5*13*17 array of char is enough (the last dimension can be 17, because you always put the first card on the discard pile).