Cody

Solution 225257

Submitted on 29 Mar 2013 by Marco Castelli
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(pidecimal(34),8))
v = Columns 1 through 16 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 Columns 17 through 32 3 8 4 6 2 6 4 3 3 8 3 2 7 9 5 0 Columns 33 through 48 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 Columns 49 through 64 1 0 5 8 2 0 9 7 4 9 4 4 5 9 2 3 Columns 65 through 80 0 7 8 1 6 4 0 6 2 8 6 2 0 8 9 9 Columns 81 through 96 8 6 2 8 0 3 4 8 2 5 3 4 2 1 1 7 Columns 97 through 100 0 6 7 9
2   Pass
%% assert(isequal(pidecimal(45),9))
v = Columns 1 through 16 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 Columns 17 through 32 3 8 4 6 2 6 4 3 3 8 3 2 7 9 5 0 Columns 33 through 48 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 Columns 49 through 64 1 0 5 8 2 0 9 7 4 9 4 4 5 9 2 3 Columns 65 through 80 0 7 8 1 6 4 0 6 2 8 6 2 0 8 9 9 Columns 81 through 96 8 6 2 8 0 3 4 8 2 5 3 4 2 1 1 7 Columns 97 through 100 0 6 7 9
3   Pass
%% assert(isequal(pidecimal(36),4))
v = Columns 1 through 16 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 Columns 17 through 32 3 8 4 6 2 6 4 3 3 8 3 2 7 9 5 0 Columns 33 through 48 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 Columns 49 through 64 1 0 5 8 2 0 9 7 4 9 4 4 5 9 2 3 Columns 65 through 80 0 7 8 1 6 4 0 6 2 8 6 2 0 8 9 9 Columns 81 through 96 8 6 2 8 0 3 4 8 2 5 3 4 2 1 1 7 Columns 97 through 100 0 6 7 9
4   Pass
%% assert(isequal(pidecimal(100),9))
v = Columns 1 through 16 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 Columns 17 through 32 3 8 4 6 2 6 4 3 3 8 3 2 7 9 5 0 Columns 33 through 48 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 Columns 49 through 64 1 0 5 8 2 0 9 7 4 9 4 4 5 9 2 3 Columns 65 through 80 0 7 8 1 6 4 0 6 2 8 6 2 0 8 9 9 Columns 81 through 96 8 6 2 8 0 3 4 8 2 5 3 4 2 1 1 7 Columns 97 through 100 0 6 7 9
5   Pass
%% assert(isequal(pidecimal(99),7))
v = Columns 1 through 16 1 4 1 5 9 2 6 5 3 5 8 9 7 9 3 2 Columns 17 through 32 3 8 4 6 2 6 4 3 3 8 3 2 7 9 5 0 Columns 33 through 48 2 8 8 4 1 9 7 1 6 9 3 9 9 3 7 5 Columns 49 through 64 1 0 5 8 2 0 9 7 4 9 4 4 5 9 2 3 Columns 65 through 80 0 7 8 1 6 4 0 6 2 8 6 2 0 8 9 9 Columns 81 through 96 8 6 2 8 0 3 4 8 2 5 3 4 2 1 1 7 Columns 97 through 100 0 6 7 9