Cody

# Problem 1067. The Dark Side of the Die

Solution 1921853

Submitted on 4 Sep 2019 by Nikolaos Nikolaou
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   Pass
assert(isequal(dark_dice(5),2))

darksum = 2

2   Pass
assert(isequal(dark_dice([5 1]),8))

darksum = 8

3   Pass
assert(isequal(dark_dice([3 4 3]),11))

darksum = 11

4   Pass
assert(isequal(dark_dice([4 4 2 3]),15))

darksum = 15

5   Pass
assert(isequal(dark_dice([1 6 2 1 3]),22))

darksum = 22

6   Pass
assert(isequal(dark_dice([2 3 3 6 6 1]),21))

darksum = 21

7   Pass
assert(isequal(dark_dice([5 2 3 4 6 3 6]),20))

darksum = 20

8   Pass
assert(isequal(dark_dice([2 5 4 4 5 4 2 1]),29))

darksum = 29

9   Pass
assert(isequal(dark_dice([6 2 1 4 6 5 2 3 3]),31))

darksum = 31

10   Pass
assert(isequal(dark_dice([6 1 6 4 3 2 3 3 1 4]),37))

darksum = 37

11   Pass
assert(isequal(dark_dice([2 3 4 2 2 4 2 5 6 5 3]),39))

darksum = 39

12   Pass
assert(isequal(dark_dice([4 1 6 6 5 2 4 1 3 2 1 2]),47))

darksum = 47

13   Pass
assert(isequal(dark_dice([3 1 4 3 5 5 4 1 1 2 4 4 3]),51))

darksum = 51

14   Pass
assert(isequal(dark_dice([5 5 6 4 2 1 4 5 3 1 2 1 2 3]),54))

darksum = 54

15   Pass
assert(isequal(dark_dice([4 3 6 4 6 4 6 2 5 2 5 5 1 2 2]),48))

darksum = 48

16   Pass
assert(isequal(dark_dice([5 6 3 5 5 1 4 3 6 1 3 3 3 5 2 5]),52))

darksum = 52

17   Pass
assert(isequal(dark_dice([3 1 2 5 3 1 3 4 2 5 2 6 2 5 2 2 1]),70))

darksum = 70

18   Pass
assert(isequal(dark_dice([4 5 4 3 4 4 5 4 6 2 5 2 1 4 3 3 4 5]),58))

darksum = 58

19   Pass
assert(isequal(dark_dice([3 4 3 6 5 2 4 4 4 6 2 2 1 6 4 3 4 4 4]),62))

darksum = 62

20   Pass
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))

darksum = 72