Cody

Solution 1101447

Submitted on 10 Jan 2017
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   Fail
tic r=uint64(308436464205151562); pmax=uint64(1850618785230909388); rings=solve_rings(r,pmax); assert(isequal(rings,3),sprintf('rings=%i, Expected 3',rings))

Undefined function 'solve_rings' for input arguments of type 'uint64'. Error in TestPoint1 (line 4) rings=solve_rings(r,pmax);

2   Fail
r=uint64(760961177192651897); pmax=uint64(1521922354385303795); rings=solve_rings(r,pmax); assert(isequal(rings,1),sprintf('rings=%i, Expected 1',rings))

Undefined function 'solve_rings' for input arguments of type 'uint64'. Error in TestPoint2 (line 3) rings=solve_rings(r,pmax);

3   Fail
r=uint64(1); pmax=uint64(2000000000000000000); rings=solve_rings(r,pmax); assert(isequal(rings,999999999),sprintf('rings=%i, Expected 999999999',rings))

Undefined function 'solve_rings' for input arguments of type 'uint64'. Error in TestPoint3 (line 3) rings=solve_rings(r,pmax);

4   Fail
r=uint64(1000); pmax=uint64(2000000000000000000); rings=solve_rings(r,pmax); assert(isequal(rings,999999500),sprintf('rings=%i, Expected 999999500',rings))

Undefined function 'solve_rings' for input arguments of type 'uint64'. Error in TestPoint4 (line 3) rings=solve_rings(r,pmax);

5   Fail
r=uint64(3); pmax=uint64(1243678947483597075); rings=solve_rings(r,pmax); assert(isequal(rings,788567988),sprintf('rings=%i, Expected 788567988',rings))

Undefined function 'solve_rings' for input arguments of type 'uint64'. Error in TestPoint5 (line 3) rings=solve_rings(r,pmax);

6   Fail
r=uint64(432); pmax=uint64(1800692162794074077); rings=solve_rings(r,pmax); assert(isequal(rings,948865465),sprintf('rings=%i, Expected 948865465',rings)) toc

Undefined function 'solve_rings' for input arguments of type 'uint64'. Error in TestPoint6 (line 3) rings=solve_rings(r,pmax);