Cody

Solution 852444

Submitted on 17 Mar 2016 by James
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))

v = 6 v = 6 4

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

v = 1 v = 1 7

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

v = 2 v = 2 4

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

v = 2 v = 2 10

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

v = 1 v = 1 3

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

v = 7 v = 7 5

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

v = 3 v = 3 1

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

v = 3 v = 3 1

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

v = 5 v = 5 3

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

v = 1 v = 1 3

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

v = 1 v = 1 3

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

v = 3 v = 3 1

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

v = 4 v = 4 2

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

v = 5 v = 5 3

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

v = 4 v = 4 2

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

v = 6 v = 6 4

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

v = 1 v = 1 7

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

v = 2 v = 2 4

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

v = 54540240 v = 54540240 54540238

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

v = 138552 v = 138552 138550

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

v = 6306564 v = 6306564 6306562

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

v = 1 v = 1 3

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

v = 13044625 v = 13044625 13044623