Cody

Solution 465120

Submitted on 2 Jul 2014 by goc3
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(bounded_multiples(66,119,163),132))

ans = 132.00

2   Pass
%% assert(isequal(bounded_multiples(50,341,960),[350 400 450 500 550 600 650 700 750 800 850 900 950]))

ans = Columns 1 through 7 350.00 400.00 450.00 500.00 550.00 600.00 650.00 Columns 8 through 13 700.00 750.00 800.00 850.00 900.00 950.00

3   Pass
%% assert(isequal(bounded_multiples(59,224,752),[236 295 354 413 472 531 590 649 708]))

ans = Columns 1 through 7 236.00 295.00 354.00 413.00 472.00 531.00 590.00 Columns 8 through 9 649.00 708.00

4   Pass
%% assert(isequal(bounded_multiples(26,506,700),[520 546 572 598 624 650 676]))

ans = 520.00 546.00 572.00 598.00 624.00 650.00 676.00

5   Pass
%% assert(isequal(bounded_multiples(90,548,960),[630 720 810 900]))

ans = 630.00 720.00 810.00 900.00

6   Pass
%% assert(isequal(bounded_multiples(14,150,258),[154 168 182 196 210 224 238 252]))

ans = Columns 1 through 7 154.00 168.00 182.00 196.00 210.00 224.00 238.00 Column 8 252.00

7   Pass
%% assert(isequal(bounded_multiples(85,255,815),[255 340 425 510 595 680 765]))

ans = 255.00 340.00 425.00 510.00 595.00 680.00 765.00

8   Pass
%% assert(isequal(bounded_multiples(25,350,930),[350 375 400 425 450 475 500 525 550 575 600 625 650 675 700 725 750 775 800 825 850 875 900 925]))

ans = Columns 1 through 7 350.00 375.00 400.00 425.00 450.00 475.00 500.00 Columns 8 through 14 525.00 550.00 575.00 600.00 625.00 650.00 675.00 Columns 15 through 21 700.00 725.00 750.00 775.00 800.00 825.00 850.00 Columns 22 through 24 875.00 900.00 925.00

9   Pass
%% assert(isequal(bounded_multiples(20,252,617),[260 280 300 320 340 360 380 400 420 440 460 480 500 520 540 560 580 600]))

ans = Columns 1 through 7 260.00 280.00 300.00 320.00 340.00 360.00 380.00 Columns 8 through 14 400.00 420.00 440.00 460.00 480.00 500.00 520.00 Columns 15 through 18 540.00 560.00 580.00 600.00

10   Pass
%% assert(isequal(bounded_multiples(48,352,831),[384 432 480 528 576 624 672 720 768 816]))

ans = Columns 1 through 7 384.00 432.00 480.00 528.00 576.00 624.00 672.00 Columns 8 through 10 720.00 768.00 816.00

11   Pass
%% assert(isequal(bounded_multiples(59,550,918),[590 649 708 767 826 885]))

ans = 590.00 649.00 708.00 767.00 826.00 885.00

12   Pass
%% assert(isequal(bounded_multiples(29,754,758),754))

ans = 754.00

13   Pass
%% assert(isequal(bounded_multiples(39,76,568),[78 117 156 195 234 273 312 351 390 429 468 507 546]))

ans = Columns 1 through 7 78.00 117.00 156.00 195.00 234.00 273.00 312.00 Columns 8 through 13 351.00 390.00 429.00 468.00 507.00 546.00

14   Pass
%% assert(isequal(bounded_multiples(6,531,780),[534 540 546 552 558 564 570 576 582 588 594 600 606 612 618 624 630 636 642 648 654 660 666 672 678 684 690 696 702 708 714 720 726 732 738 744 750 756 762 768 774 780]))

ans = Columns 1 through 7 534.00 540.00 546.00 552.00 558.00 564.00 570.00 Columns 8 through 14 576.00 582.00 588.00 594.00 600.00 606.00 612.00 Columns 15 through 21 618.00 624.00 630.00 636.00 642.00 648.00 654.00 Columns 22 through 28 660.00 666.00 672.00 678.00 684.00 690.00 696.00 Columns 29 through 35 702.00 708.00 714.00 720.00 726.00 732.00 738.00 Columns 36 through 42 744.00 750.00 756.00 762.00 768.00 774.00 780.00

15   Pass
%% assert(isequal(bounded_multiples(94,130,569),[188 282 376 470 564]))

ans = 188.00 282.00 376.00 470.00 564.00

16   Pass
%% assert(isequal(bounded_multiples(47,12,338),[47 94 141 188 235 282 329]))

ans = 47.00 94.00 141.00 188.00 235.00 282.00 329.00

17   Pass
%% assert(isequal(bounded_multiples(17,312,795),[323 340 357 374 391 408 425 442 459 476 493 510 527 544 561 578 595 612 629 646 663 680 697 714 731 748 765 782]))

ans = Columns 1 through 7 323.00 340.00 357.00 374.00 391.00 408.00 425.00 Columns 8 through 14 442.00 459.00 476.00 493.00 510.00 527.00 544.00 Columns 15 through 21 561.00 578.00 595.00 612.00 629.00 646.00 663.00 Columns 22 through 28 680.00 697.00 714.00 731.00 748.00 765.00 782.00

18   Pass
%% assert(isequal(bounded_multiples(53,166,602),[212 265 318 371 424 477 530 583]))

ans = Columns 1 through 7 212.00 265.00 318.00 371.00 424.00 477.00 530.00 Column 8 583.00

19   Pass
%% assert(isequal(bounded_multiples(27,655,690),675))

ans = 675.00

20   Pass
%% assert(isequal(bounded_multiples(75,84,451),[150 225 300 375 450]))

ans = 150.00 225.00 300.00 375.00 450.00