Cody

Solution 485014

Submitted on 9 Aug 2014 by Guillaume
  • Size: 16
  • This is the leading solution.
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
%% N = 1; M_correct = 666; assert(isequal(sixsixsix(N),M_correct))

2   Pass
%% N = 7; M_correct = [666 151515 181818 272727 424242 636363 666666]; assert(isequal(sixsixsix(N),M_correct))

3   Pass
%% N = 25; M_correct=[666 151515 181818 272727 424242 636363 666666 757575 878787 909090 105105105 114114114 117117117 138138138 153153153 162162162 165165165 177177177 186186186 210210210 213213213 225225225 234234234 237237237 258258258]; assert(isequal(sixsixsix(N),M_correct))

4   Pass
%% N = 63; M_correct = [666 151515 181818 272727 424242 636363 666666 757575 878787 909090 105105105 114114114 117117117 138138138 153153153 162162162 165165165 177177177 186186186 210210210 213213213 225225225 234234234 237237237 258258258 273273273 282282282 285285285 297297297 306306306 330330330 333333333 345345345 354354354 357357357 378378378 393393393 402402402 405405405 417417417 426426426 450450450 453453453 465465465 474474474 477477477 498498498 513513513 522522522 525525525 537537537 546546546 570570570 573573573 585585585 594594594 597597597 618618618 633633633 642642642 645645645 657657657 666666666]; assert(isequal(sixsixsix(N),M_correct))