Cody

Solution 952584

Submitted on 1 Sep 2016 by Riazul Arefin
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
r=138;p=844;rings=3; assert(isequal(solve_rings(r,p),rings))

r = 1 1 1 c = 1 2 3

2   Pass
r=21;p=197;rings=4; assert(isequal(solve_rings(r,p),rings))

r = 1 1 1 1 c = 1 2 3 4

3   Pass
r=214;p=862;rings=2; assert(isequal(solve_rings(r,p),rings))

r = 1 1 c = 1 2

4   Pass
r=20;p=845;rings=13; assert(isequal(solve_rings(r,p),rings))

r = 1 1 1 1 1 1 1 1 1 1 1 1 1 c = 1 2 3 4 5 6 7 8 9 10 11 12 13

5   Pass
r=20;p=844;rings=12; assert(isequal(solve_rings(r,p),rings))

r = 1 1 1 1 1 1 1 1 1 1 1 1 c = 1 2 3 4 5 6 7 8 9 10 11 12