Cody

Solution 1130075

Submitted on 25 Feb 2017 by Tim
  • Size: 16
  • This is the leading solution.
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
v=parenc(19,1); assert(~isempty(v)) assert(v==1)

2   Pass
v=parenc(14,4); assert(~isempty(v)) assert(v==10)

3   Pass
v=parenc(4,15); assert(~isempty(v)) assert(v==10)

4   Pass
v=parenc(8,6); assert(~isempty(v)) assert(v==21)

5   Pass
v=parenc(14,1); assert(~isempty(v)) assert(v==1)

6   Pass
v=parenc(10,2); assert(~isempty(v)) assert(v==3)

7   Pass
v=parenc(10,10); assert(~isempty(v)) assert(v==55)

8   Pass
v=parenc(3,7); assert(~isempty(v)) assert(v==6)

9   Pass
v=parenc(3,13); assert(~isempty(v)) assert(v==6)

10   Pass
v=parenc(4,12); assert(~isempty(v)) assert(v==10)

11   Pass
v=parenc(2,2); assert(~isempty(v)) assert(v==3)

12   Pass
v=parenc(6,11); assert(~isempty(v)) assert(v==21)

13   Pass
v=parenc(4,12); assert(~isempty(v)) assert(v==10)

14   Pass
v=parenc(15,5); assert(~isempty(v)) assert(v==15)

15   Pass
v=parenc(14,3); assert(~isempty(v)) assert(v==6)

16   Pass
v=parenc(20,0); assert(~isempty(v)) assert(v==0)

17   Pass
v=parenc(12,3); assert(~isempty(v)) assert(v==6)

18   Pass
v=parenc(0,10); assert(~isempty(v)) assert(v==0)

19   Pass
v=parenc(18,2); assert(~isempty(v)) assert(v==3)

20   Pass
v=parenc(16,4); assert(~isempty(v)) assert(v==10)

21   Pass
v=parenc(3,12); assert(~isempty(v)) assert(v==6)

22   Pass
v=parenc(8,12); assert(~isempty(v)) assert(v==36)

23   Pass
v=parenc(8,6); assert(~isempty(v)) assert(v==21)

24   Pass
v=parenc(1,8); assert(~isempty(v)) assert(v==1)

25   Pass
v=parenc(7,13); assert(~isempty(v)) assert(v==28)

26   Pass
v=parenc(7,6); assert(~isempty(v)) assert(v==21)

27   Pass
v=parenc(11,8); assert(~isempty(v)) assert(v==36)

28   Pass
v=parenc(17,1); assert(~isempty(v)) assert(v==1)

29   Pass
v=parenc(4,2); assert(~isempty(v)) assert(v==3)

30   Pass
v=parenc(1,6); assert(~isempty(v)) assert(v==1)

31   Pass
v=parenc(5,4); assert(~isempty(v)) assert(v==10)

32   Pass
v=parenc(1,1); assert(~isempty(v)) assert(v==1)

33   Pass
v=parenc(7,13); assert(~isempty(v)) assert(v==28)

34   Pass
v=parenc(6,12); assert(~isempty(v)) assert(v==21)

35   Pass
v=parenc(15,2); assert(~isempty(v)) assert(v==3)

36   Pass
v=parenc(14,2); assert(~isempty(v)) assert(v==3)

37   Pass
v=parenc(12,1); assert(~isempty(v)) assert(v==1)

38   Pass
v=parenc(4,15); assert(~isempty(v)) assert(v==10)

39   Pass
v=parenc(12,7); assert(~isempty(v)) assert(v==28)

40   Pass
v=parenc(5,1); assert(~isempty(v)) assert(v==1)

41   Pass
v=parenc(19,1); assert(~isempty(v)) assert(v==1)

42   Pass
v=parenc(6,5); assert(~isempty(v)) assert(v==15)

43   Pass
v=parenc(11,5); assert(~isempty(v)) assert(v==15)

44   Pass
v=parenc(8,12); assert(~isempty(v)) assert(v==36)

45   Pass
v=parenc(18,2); assert(~isempty(v)) assert(v==3)

46   Pass
v=parenc(18,1); assert(~isempty(v)) assert(v==1)

47   Pass
v=parenc(13,4); assert(~isempty(v)) assert(v==10)

48   Pass
v=parenc(3,6); assert(~isempty(v)) assert(v==6)

49   Pass
v=parenc(6,1); assert(~isempty(v)) assert(v==1)

50   Pass
v=parenc(3,3); assert(~isempty(v)) assert(v==6)

51   Pass
v=parenc(19,1); assert(~isempty(v)) assert(v==1)

52   Pass
v=parenc(9,11); assert(~isempty(v)) assert(v==45)

53   Pass
v=parenc(10,1); assert(~isempty(v)) assert(v==1)

54   Pass
v=parenc(0,11); assert(~isempty(v)) assert(v==0)

55   Pass
v=parenc(11,3); assert(~isempty(v)) assert(v==6)

56   Pass
v=parenc(3,2); assert(~isempty(v)) assert(v==3)

57   Pass
v=parenc(18,2); assert(~isempty(v)) assert(v==3)

58   Pass
v=parenc(1,0); assert(~isempty(v)) assert(v==0)

59   Pass
v=parenc(9,1); assert(~isempty(v)) assert(v==1)

60   Pass
v=parenc(1,19); assert(~isempty(v)) assert(v==1)

61   Pass
v=parenc(4,3); assert(~isempty(v)) assert(v==6)

62   Pass
v=parenc(13,7); assert(~isempty(v)) assert(v==28)

63   Pass
v=parenc(8,6); assert(~isempty(v)) assert(v==21)

64   Pass
v=parenc(7,1); assert(~isempty(v)) assert(v==1)

65   Pass
v=parenc(16,2); assert(~isempty(v)) assert(v==3)

66   Pass
v=parenc(16,4); assert(~isempty(v)) assert(v==10)

67   Pass
v=parenc(7,8); assert(~isempty(v)) assert(v==28)

68   Pass
v=parenc(13,3); assert(~isempty(v)) assert(v==6)

69   Pass
v=parenc(4,14); assert(~isempty(v)) assert(v==10)

70   Pass
v=parenc(7,8); assert(~isempty(v)) assert(v==28)

71   Pass
v=parenc(9,5); assert(~isempty(v)) assert(v==15)

72   Pass
v=parenc(4,7); assert(~isempty(v)) assert(v==10)

73   Pass
v=parenc(12,2); assert(~isempty(v)) assert(v==3)

74   Pass
v=parenc(10,1); assert(~isempty(v)) assert(v==1)

75   Pass
v=parenc(17,3); assert(~isempty(v)) assert(v==6)

76   Pass
v=parenc(4,13); assert(~isempty(v)) assert(v==10)

77   Pass
v=parenc(11,1); assert(~isempty(v)) assert(v==1)

78   Pass
v=parenc(10,5); assert(~isempty(v)) assert(v==15)

79   Pass
v=parenc(7,7); assert(~isempty(v)) assert(v==28)

80   Pass
v=parenc(6,4); assert(~isempty(v)) assert(v==10)

81   Pass
v=parenc(5,13); assert(~isempty(v)) assert(v==15)

82   Pass
v=parenc(10,10); assert(~isempty(v)) assert(v==55)

83   Pass
v=parenc(14,3); assert(~isempty(v)) assert(v==6)

84   Pass
v=parenc(8,4); assert(~isempty(v)) assert(v==10)

85   Pass
v=parenc(14,5); assert(~isempty(v)) assert(v==15)

86   Pass
v=parenc(0,20); assert(~isempty(v)) assert(v==0)

87   Pass
v=parenc(0,1); assert(~isempty(v)) assert(v==0)

88   Pass
v=parenc(1,10); assert(~isempty(v)) assert(v==1)

89   Pass
v=parenc(13,3); assert(~isempty(v)) assert(v==6)

90   Pass
v=parenc(0,9); assert(~isempty(v)) assert(v==0)

91   Pass
v=parenc(1,17); assert(~isempty(v)) assert(v==1)

92   Pass
v=parenc(0,2); assert(~isempty(v)) assert(v==0)

93   Pass
v=parenc(2,0); assert(~isempty(v)) assert(v==0)

94   Pass
v=parenc(4,12); assert(~isempty(v)) assert(v==10)

95   Pass
v=parenc(11,9); assert(~isempty(v)) assert(v==45)

96   Pass
v=parenc(18,2); assert(~isempty(v)) assert(v==3)

97   Pass
v=parenc(15,3); assert(~isempty(v)) assert(v==6)

98   Pass
v=parenc(16,2); assert(~isempty(v)) assert(v==3)

99   Pass
v=parenc(17,2); assert(~isempty(v)) assert(v==3)

100   Pass
v=parenc(14,5); assert(~isempty(v)) assert(v==15)