Cody

Solution 173474

Submitted on 6 Dec 2012
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))

ans = 1

2   Fail
%% assert(isequal(ncircles(56774),1))

Error: Assertion failed.

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

ans = 6

4   Fail
%% assert(isequal(ncircles(32420),1))

Error: Assertion failed.

5   Fail
%% assert(isequal(ncircles(71604),2))

Error: Assertion failed.

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

ans = 1

7   Fail
%% assert(isequal(ncircles(14229),1))

Error: Assertion failed.

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

ans = 3

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

ans = 2

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

ans = 1

11   Fail
%% assert(isequal(ncircles(1941),1))

Error: Assertion failed.

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

ans = 1

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

ans = 2

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

ans = 6

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

ans = 0

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

ans = 2

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

ans = 7

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

ans = 2

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

ans = 2

20   Fail
%% assert(isequal(ncircles(45903),2))

Error: Assertion failed.

21   Fail
%% assert(isequal(ncircles(4803),3))

Error: Assertion failed.

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

ans = 3

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

ans = 1

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

ans = 3

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

ans = 3

26   Fail
%% assert(isequal(ncircles(45053),1))

Error: Assertion failed.

27   Fail
%% assert(isequal(ncircles(80664),5))

Error: Assertion failed.

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

ans = 4

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

ans = 4

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

ans = 3

31   Fail
%% assert(isequal(ncircles(5494),1))

Error: Assertion failed.

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

ans = 1

33   Fail
%% assert(isequal(ncircles(42429),1))

Error: Assertion failed.

34   Fail
%% assert(isequal(ncircles(90554),2))

Error: Assertion failed.

35   Fail
%% assert(isequal(ncircles(41733),0))

Error: Assertion failed.

36   Fail
%% assert(isequal(ncircles(15406),2))

Error: Assertion failed.

37   Fail
%% assert(isequal(ncircles(54000),3))

Error: Assertion failed.

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

ans = 2

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

ans = 5

40   Fail
%% assert(isequal(ncircles(39466),3))

Error: Assertion failed.

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

ans = 3

42   Fail
%% assert(isequal(ncircles(84792),3))

Error: Assertion failed.

43   Fail
%% assert(isequal(ncircles(94506),3))

Error: Assertion failed.

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

ans = 2

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

ans = 2

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

ans = 3

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

ans = 0

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

ans = 5

49   Fail
%% assert(isequal(ncircles(29145),1))

Error: Assertion failed.

50   Fail
%% assert(isequal(ncircles(46167),2))

Error: Assertion failed.