Cody

Solution 704642

Submitted on 22 Jul 2015
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))

ans = 21

Output argument "configs" (and maybe others) not assigned during call to "unique_dice".

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

ans = 1716

Output argument "configs" (and maybe others) not assigned during call to "unique_dice".

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

ans = 352716

Output argument "configs" (and maybe others) not assigned during call to "unique_dice".

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

ans = 6.8923e+10

Output argument "configs" (and maybe others) not assigned during call to "unique_dice".

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

ans = 4421275

Output argument "configs" (and maybe others) not assigned during call to "unique_dice".

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

ans = 176851

Output argument "configs" (and maybe others) not assigned during call to "unique_dice".

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

ans = 4595

Output argument "configs" (and maybe others) not assigned during call to "unique_dice".