Cody

Solution 1710718

Submitted on 20 Jan 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(ncircles(50237),1))

t1 = 5 0 2 3 7 s0 = 1 s6 = 0 s8 = 0 s9 = 0 count = 1 0 0 0 y = 1

2   Pass
assert(isequal(ncircles(56774),1))

t1 = 5 6 7 7 4 s0 = 0 s6 = 1 s8 = 0 s9 = 0 count = 0 1 0 0 y = 1

3   Pass
assert(isequal(ncircles(18828),6))

t1 = 1 8 8 2 8 s0 = 0 s6 = 0 s8 = 6 s9 = 0 count = 0 0 6 0 y = 6

4   Pass
assert(isequal(ncircles(32420),1))

t1 = 3 2 4 2 0 s0 = 1 s6 = 0 s8 = 0 s9 = 0 count = 1 0 0 0 y = 1

5   Pass
assert(isequal(ncircles(71604),2))

t1 = 7 1 6 0 4 s0 = 1 s6 = 1 s8 = 0 s9 = 0 count = 1 1 0 0 y = 2

6   Pass
assert(isequal(ncircles(55293),1))

t1 = 5 5 2 9 3 s0 = 0 s6 = 0 s8 = 0 s9 = 1 count = 0 0 0 1 y = 1

7   Pass
assert(isequal(ncircles(14229),1))

t1 = 1 4 2 2 9 s0 = 0 s6 = 0 s8 = 0 s9 = 1 count = 0 0 0 1 y = 1

8   Pass
assert(isequal(ncircles(38037),3))

t1 = 3 8 0 3 7 s0 = 1 s6 = 0 s8 = 2 s9 = 0 count = 1 0 2 0 y = 3

9   Pass
assert(isequal(ncircles(39657),2))

t1 = 3 9 6 5 7 s0 = 0 s6 = 1 s8 = 0 s9 = 1 count = 0 1 0 1 y = 2

10   Pass
assert(isequal(ncircles(57675),1))

t1 = 5 7 6 7 5 s0 = 0 s6 = 1 s8 = 0 s9 = 0 count = 0 1 0 0 y = 1

11   Pass
assert(isequal(ncircles(1941),1))

t1 = 1 9 4 1 s0 = 0 s6 = 0 s8 = 0 s9 = 1 count = 0 0 0 1 y = 1

12   Pass
assert(isequal(ncircles(57759),1))

t1 = 5 7 7 5 9 s0 = 0 s6 = 0 s8 = 0 s9 = 1 count = 0 0 0 1 y = 1

13   Pass
assert(isequal(ncircles(93220),2))

t1 = 9 3 2 2 0 s0 = 1 s6 = 0 s8 = 0 s9 = 1 count = 1 0 0 1 y = 2

14   Pass
assert(isequal(ncircles(10688),6))

t1 = 1 0 6 8 8 s0 = 1 s6 = 1 s8 = 4 s9 = 0 count = 1 1 4 0 y = 6

15   Pass
assert(isequal(ncircles(73215),0))

t1 = 7 3 2 1 5 s0 = 0 s6 = 0 s8 = 0 s9 = 0 count = 0 0 0 0 y = 0

16   Pass
assert(isequal(ncircles(97053),2))

t1 = 9 7 0 5 3 s0 = 1 s6 = 0 s8 = 0 s9 = 1 count = 1 0 0 1 y = 2

17   Pass
assert(isequal(ncircles(60889),7))

t1 = 6 0 8 8 9 s0 = 1 s6 = 1 s8 = 4 s9 = 1 count = 1 1 4 1 y = 7

18   Pass
assert(isequal(ncircles(71967),2))

t1 = 7 1 9 6 7 s0 = 0 s6 = 1 s8 = 0 s9 = 1 count = 0 1 0 1 y = 2

19   Pass
assert(isequal(ncircles(30276),2))

t1 = 3 0 2 7 6 s0 = 1 s6 = 1 s8 = 0 s9 = 0 count = 1 1 0 0 y = 2

20   Pass
assert(isequal(ncircles(45903),2))

t1 = 4 5 9 0 3 s0 = 1 s6 = 0 s8 = 0 s9 = 1 count = 1 0 0 1 y = 2

21   Pass
assert(isequal(ncircles(4803),3))

t1 = 4 8 0 3 s0 = 1 s6 = 0 s8 = 2 s9 = 0 count = 1 0 2 0 y = 3

22   Pass
assert(isequal(ncircles(38536),3))

t1 = 3 8 5 3 6 s0 = 0 s6 = 1 s8 = 2 s9 = 0 count = 0 1 2 0 y = 3

23   Pass
assert(isequal(ncircles(36172),1))

t1 = 3 6 1 7 2 s0 = 0 s6 = 1 s8 = 0 s9 = 0 count = 0 1 0 0 y = 1

24   Pass
assert(isequal(ncircles(28759),3))

t1 = 2 8 7 5 9 s0 = 0 s6 = 0 s8 = 2 s9 = 1 count = 0 0 2 1 y = 3

25   Pass
assert(isequal(ncircles(81672),3))

t1 = 8 1 6 7 2 s0 = 0 s6 = 1 s8 = 2 s9 = 0 count = 0 1 2 0 y = 3

26   Pass
assert(isequal(ncircles(45053),1))

t1 = 4 5 0 5 3 s0 = 1 s6 = 0 s8 = 0 s9 = 0 count = 1 0 0 0 y = 1

27   Pass
assert(isequal(ncircles(80664),5))

t1 = 8 0 6 6 4 s0 = 1 s6 = 2 s8 = 2 s9 = 0 count = 1 2 2 0 y = 5

28   Pass
assert(isequal(ncircles(79018),4))

t1 = 7 9 0 1 8 s0 = 1 s6 = 0 s8 = 2 s9 = 1 count = 1 0 2 1 y = 4

29   Pass
assert(isequal(ncircles(28296),4))

t1 = 2 8 2 9 6 s0 = 0 s6 = 1 s8 = 2 s9 = 1 count = 0 1 2 1 y = 4

30   Pass
assert(isequal(ncircles(6831),3))

t1 = 6 8 3 1 s0 = 0 s6 = 1 s8 = 2 s9 = 0 count = 0 1 2 0 y = 3

31   Pass
assert(isequal(ncircles(5494),1))

t1 = 5 4 9 4 s0 = 0 s6 = 0 s8 = 0 s9 = 1 count = 0 0 0 1 y = 1

32   Pass
assert(isequal(ncircles(63753),1))

t1 = 6 3 7 5 3 s0 = 0 s6 = 1 s8 = 0 s9 = 0 count = 0 1 0 0 y = 1

33   Pass
assert(isequal(ncircles(42429),1))

t1 = 4 2 4 2 9 s0 = 0 s6 = 0 s8 = 0 s9 = 1 count = 0 0 0 1 y = 1

34   Pass
assert(isequal(ncircles(90554),2))

t1 = 9 0 5 5 4 s0 = 1 s6 = 0 s8 = 0 s9 = 1 count = 1 0 0 1 y = 2

35   Pass
assert(isequal(ncircles(41733),0))

t1 = 4 1 7 3 3 s0 = 0 s6 = 0 s8 = 0 s9 = 0 count = 0 0 0 0 y = 0

36   Pass
assert(isequal(ncircles(15406),2))

t1 = 1 5 4 0 6 s0 = 1 s6 = 1 s8 = 0 s9 = 0 count = 1 1 0 0 y = 2

37   Pass
assert(isequal(ncircles(54000),3))

t1 = 5 4 0 0 0 s0 = 3 s6 = 0 s8 = 0 s9 = 0 count = 3 0 0 0 y = 3

38   Pass
assert(isequal(ncircles(93710),2))

t1 = 9 3 7 1 0 s0 = 1 s6 = 0 s8 = 0 s9 = 1 count = 1 0 0 1 y = 2

39   Pass
assert(isequal(ncircles(66096),5))

t1 = 6 6 0 9 6 s0 = 1 s6 = 3 s8 = 0 s9 = 1 count = 1 3 0 1 y = 5

40   Pass
assert(isequal(ncircles(39466),3))

t1 = 3 9 4 6 6 s0 = 0 s6 = 2 s8 = 0 s9 = 1 count = 0 2 0 1 y = 3

41   Pass
assert(isequal(ncircles(25900),3))

t1 = 2 5 9 0 0 s0 = 2 s6 = 0 s8 = 0 s9 = 1 count = 2 0 0 1 y = 3

42   Pass
assert(isequal(ncircles(84792),3))

t1 = 8 4 7 9 2 s0 = 0 s6 = 0 s8 = 2 s9 = 1 count = 0 0 2 1 y = 3

43   Pass
assert(isequal(ncircles(94506),3))

t1 = 9 4 5 0 6 s0 = 1 s6 = 1 s8 = 0 s9 = 1 count = 1 1 0 1 y = 3

44   Pass
assert(isequal(ncircles(37700),2))

t1 = 3 7 7 0 0 s0 = 2 s6 = 0 s8 = 0 s9 = 0 count = 2 0 0 0 y = 2

45   Pass
assert(isequal(ncircles(6729),2))

t1 = 6 7 2 9 s0 = 0 s6 = 1 s8 = 0 s9 = 1 count = 0 1 0 1 y = 2

46   Pass
assert(isequal(ncircles(18159),3))

t1 = 1 8 1 5 9 s0 = 0 s6 = 0 s8 = 2 s9 = 1 count = 0 0 2 1 y = 3

47   Pass
assert(isequal(ncircles(57575),0))

t1 = 5 7 5 7 5 s0 = 0 s6 = 0 s8 = 0 s9 = 0 count = 0 0 0 0 y = 0

48   Pass
assert(isequal(ncircles(18589),5))

t1 = 1 8 5 8 9 s0 = 0 s6 = 0 s8 = 4 s9 = 1 count = 0 0 4 1 y = 5

49   Pass
assert(isequal(ncircles(29145),1))

t1 = 2 9 1 4 5 s0 = 0 s6 = 0 s8 = 0 s9 = 1 count = 0 0 0 1 y = 1

50   Pass
assert(isequal(ncircles(46167),2))

t1 = 4 6 1 6 7 s0 = 0 s6 = 2 s8 = 0 s9 = 0 count = 0 2 0 0 y = 2

Suggested Problems

More from this Author56