Cody

Solution 489883

Submitted on 23 Aug 2014
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% assert(isequal(unique_dice(2,6),21))

Error: Assertion failed.

2   Fail
%% assert(isequal(unique_dice(6,8),1716))

Error: Out of memory. Type HELP MEMORY for your options.

3   Fail
%% assert(isequal(unique_dice(10,12),352716))

Error: Maximum variable size allowed by the program is exceeded.

4   Fail
%% assert(isequal(unique_dice(20,20),68923264410))

Error: Maximum variable size allowed by the program is exceeded.

5   Fail
%% assert(isequal(unique_dice(4,100),4421275))

Error: Maximum variable size allowed by the program is exceeded.

6   Fail
%% assert(isequal(unique_dice(100,4),176851))

Error: Out of memory. Type HELP MEMORY for your options.

7   Fail
%% x=ceil(10000*rand); assert(isequal(unique_dice(1,x),x))

Error: Maximum variable size allowed by the program is exceeded.