Cody

Solution 1865137

Submitted on 4 Jul 2019 by Nikolaos Nikolaou
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))

multiples = 0 66 132 multiples = 132

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

multiples = 0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950 multiples = 350 400 450 500 550 600 650 700 750 800 850 900 950

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

multiples = 0 59 118 177 236 295 354 413 472 531 590 649 708 multiples = 236 295 354 413 472 531 590 649 708

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

multiples = 0 26 52 78 104 130 156 182 208 234 260 286 312 338 364 390 416 442 468 494 520 546 572 598 624 650 676 multiples = 520 546 572 598 624 650 676

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

multiples = 0 90 180 270 360 450 540 630 720 810 900 multiples = 630 720 810 900

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

multiples = 0 14 28 42 56 70 84 98 112 126 140 154 168 182 196 210 224 238 252 multiples = 154 168 182 196 210 224 238 252

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

multiples = 0 85 170 255 340 425 510 595 680 765 multiples = 255 340 425 510 595 680 765

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]))

multiples = Columns 1 through 30 0 25 50 75 100 125 150 175 200 225 250 275 300 325 350 375 400 425 450 475 500 525 550 575 600 625 650 675 700 725 Columns 31 through 38 750 775 800 825 850 875 900 925 multiples = 350 375 400 425 450 475 500 525 550 575 600 625 650 675 700 725 750 775 800 825 850 875 900 925

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]))

multiples = Columns 1 through 30 0 20 40 60 80 100 120 140 160 180 200 220 240 260 280 300 320 340 360 380 400 420 440 460 480 500 520 540 560 580 Column 31 600 multiples = 260 280 300 320 340 360 380 400 420 440 460 480 500 520 540 560 580 600

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

multiples = 0 48 96 144 192 240 288 336 384 432 480 528 576 624 672 720 768 816 multiples = 384 432 480 528 576 624 672 720 768 816

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

multiples = 0 59 118 177 236 295 354 413 472 531 590 649 708 767 826 885 multiples = 590 649 708 767 826 885

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

multiples = 0 29 58 87 116 145 174 203 232 261 290 319 348 377 406 435 464 493 522 551 580 609 638 667 696 725 754 multiples = 754

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

multiples = 0 39 78 117 156 195 234 273 312 351 390 429 468 507 546 multiples = 78 117 156 195 234 273 312 351 390 429 468 507 546

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]))

multiples = Columns 1 through 30 0 6 12 18 24 30 36 42 48 54 60 66 72 78 84 90 96 102 108 114 120 126 132 138 144 150 156 162 168 174 Columns 31 through 60 180 186 192 198 204 210 216 222 228 234 240 246 252 258 264 270 276 282 288 294 300 306 312 318 324 330 336 342 348 354 Columns 61 through 90 360 366 372 378 384 390 396 402 408 414 420 426 432 438 444 450 456 462 468 474 480 486 492 498 504 510 516 522 528 534 Columns 91 through 120 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 Columns 121 through 131 720 726 732 738 744 750 756 762 768 774 780 multiples = Columns 1 through 30 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 Columns 31 through 42 714 720 726 732 738 744 750 756 762 768 774 780

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

multiples = 0 94 188 282 376 470 564 multiples = 188 282 376 470 564

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

multiples = 0 47 94 141 188 235 282 329 multiples = 47 94 141 188 235 282 329

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]))

multiples = Columns 1 through 30 0 17 34 51 68 85 102 119 136 153 170 187 204 221 238 255 272 289 306 323 340 357 374 391 408 425 442 459 476 493 Columns 31 through 47 510 527 544 561 578 595 612 629 646 663 680 697 714 731 748 765 782 multiples = 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

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

multiples = 0 53 106 159 212 265 318 371 424 477 530 583 multiples = 212 265 318 371 424 477 530 583

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

multiples = 0 27 54 81 108 135 162 189 216 243 270 297 324 351 378 405 432 459 486 513 540 567 594 621 648 675 multiples = 675

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

multiples = 0 75 150 225 300 375 450 multiples = 150 225 300 375 450