Cody

Solution 857388

Submitted on 27 Mar 2016 by Alfonso Nieto-Castanon
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
m=[8 3 1 ]; v=ClockDance(m); vexp=[6 4 ]; assert(isequal(vexp,v))

2   Pass
m=[8 4 2 ]; v=ClockDance(m); vexp=[1 7 ]; assert(isequal(vexp,v))

3   Pass
m=[4 1 8 ]; v=ClockDance(m); vexp=[2 4 ]; assert(isequal(vexp,v))

4   Pass
m=[10 9 6 ]; v=ClockDance(m); vexp=[2 10 ]; assert(isequal(vexp,v))

5   Pass
m=[4 2 9 ]; v=ClockDance(m); vexp=[1 3 ]; assert(isequal(vexp,v))

6   Pass
m=[8 2 10 ]; v=ClockDance(m); vexp=[7 5 ]; assert(isequal(vexp,v))

7   Pass
m=[8 8 7 ]; v=ClockDance(m); vexp=[3 1 ]; assert(isequal(vexp,v))

8   Pass
m=[4 4 3 ]; v=ClockDance(m); vexp=[3 1 ]; assert(isequal(vexp,v))

9   Pass
m=[6 6 1 ]; v=ClockDance(m); vexp=[5 3 ]; assert(isequal(vexp,v))

10   Pass
m=[4 4 6 ]; v=ClockDance(m); vexp=[1 3 ]; assert(isequal(vexp,v))

11   Pass
m=[4 2 5 ]; v=ClockDance(m); vexp=[1 3 ]; assert(isequal(vexp,v))

12   Pass
m=[4 4 1 ]; v=ClockDance(m); vexp=[3 1 ]; assert(isequal(vexp,v))

13   Pass
m=[4 1 1 ]; v=ClockDance(m); vexp=[4 2 ]; assert(isequal(vexp,v))

14   Pass
m=[6 2 2 ]; v=ClockDance(m); vexp=[5 3 ]; assert(isequal(vexp,v))

15   Pass
m=[6 1 10 ]; v=ClockDance(m); vexp=[4 2 ]; assert(isequal(vexp,v))

16   Pass
m=[8 3 1 ]; v=ClockDance(m); vexp=[6 4 ]; assert(isequal(vexp,v))

17   Pass
m=[8 4 2 ]; v=ClockDance(m); vexp=[1 7 ]; assert(isequal(vexp,v))

18   Pass
m=[4 1 8 ]; v=ClockDance(m); vexp=[2 4 ]; assert(isequal(vexp,v))

19   Pass
m=[72137284 16112525 91351141 ]; v=ClockDance(m); vexp=[54540240 54540238 ]; assert(isequal(vexp,v))

20   Pass
m=[155546 123001 56937611 ]; v=ClockDance(m); vexp=[138552 138550 ]; assert(isequal(vexp,v))

21   Pass
m=[78548986 44806245 20024652 ]; v=ClockDance(m); vexp=[6306564 6306562 ]; assert(isequal(vexp,v))

22   Pass
m=[4 2 5 ]; v=ClockDance(m); vexp=[1 3 ]; assert(isequal(vexp,v))

23   Pass
m=[61256952 31789482 70629381 ]; v=ClockDance(m); vexp=[13044625 13044623 ]; assert(isequal(vexp,v))