Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 172938

Submitted on 5 Dec 2012

Incorrect

18Size
Leading solution size is 11.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Fail
 
%%
assert(isequal(dark_dice(5),2))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
2
Fail
 
%%
assert(isequal(dark_dice([5 1]),8))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
3
Fail
 
%%
assert(isequal(dark_dice([3 4 3]),11))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
4
Fail
 
%%
assert(isequal(dark_dice([4 4 2 3]),15))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
5
Fail
 
%%
assert(isequal(dark_dice([1 6 2 1 3]),22))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
6
Fail
 
%%
assert(isequal(dark_dice([2 3 3 6 6 1]),21))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
7
Fail
 
%%
assert(isequal(dark_dice([5 2 3 4 6 3 6]),20))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
8
Fail
 
%%
assert(isequal(dark_dice([2 5 4 4 5 4 2 1]),29))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
9
Fail
 
%%
assert(isequal(dark_dice([6 2 1 4 6 5 2 3 3]),31))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
10
Fail
 
%%
assert(isequal(dark_dice([6 1 6 4 3 2 3 3 1 4]),37))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
11
Fail
 
%%
assert(isequal(dark_dice([2 3 4 2 2 4 2 5 6 5 3]),39))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
12
Fail
 
%%
assert(isequal(dark_dice([4 1 6 6 5 2 4 1 3 2 1 2]),47))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
13
Fail
 
%%
assert(isequal(dark_dice([3 1 4 3 5 5 4 1 1 2 4 4 3]),51))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
14
Fail
 
%%
assert(isequal(dark_dice([5 5 6 4 2 1 4 5 3 1 2 1 2 3]),54))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
15
Fail
 
%%
assert(isequal(dark_dice([4 3 6 4 6 4 6 2 5 2 5 5 1 2 2]),48))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
16
Fail
 
%%
assert(isequal(dark_dice([5 6 3 5 5 1 4 3 6 1 3 3 3 5 2 5]),52))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
17
Fail
 
%%
assert(isequal(dark_dice([3 1 2 5 3 1 3 4 2 5 2 6 2 5 2 2 1]),70))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
18
Fail
 
%%
assert(isequal(dark_dice([4 5 4 3 4 4 5 4 6 2 5 2 1 4 3 3 4 5]),58))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
19
Fail
 
%%
assert(isequal(dark_dice([3 4 3 6 5 2 4 4 4 6 2 2 1 6 4 3 4 4 4]),62))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".
20
Fail
 
%%
assert(isequal(dark_dice([4 5 4 6 2 1 1 1 3 3 3 5 4 5 6 6 2 1 5 1]),72))
Error: Output argument "darksum" (and maybe others) not assigned during call to "/users/msssystem4/dark_dice.m>dark_dice".