Cody

Solution 2145877

Submitted on 1 Mar 2020
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
x = 1; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

m = 1

2   Pass
x = 99; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

m = 9 9

3   Pass
x = 126; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

m = 12 16 21 26 61 62 1 2 6

4   Pass
x = 153; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

m = 13 15 31 35 51 53 1 5 3

5   Pass
x = 688; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

m = 68 86 88 6 8 8

6   Fail
x = 1010; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

m = 10 11 101 1 0 1 0

Assertion failed.

7   Pass
x = 12760; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

m = Columns 1 through 15 12 16 17 21 26 27 61 62 67 71 72 76 126 127 176 Columns 16 through 27 276 621 671 672 721 1276 6721 1 2 7 6 0

8   Pass
x = 12768; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

m = Columns 1 through 15 12 16 17 18 21 26 27 28 61 62 67 68 71 72 76 Columns 16 through 30 78 81 82 86 87 126 127 128 168 176 178 268 276 278 621 Columns 31 through 45 671 672 721 768 821 861 862 867 871 872 1268 1276 1278 1768 2768 Columns 46 through 55 6721 8621 8671 8672 8721 1 2 7 6 8

9   Pass
x = 11439; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

m = Columns 1 through 15 11 13 14 19 31 34 39 41 43 49 91 93 94 113 114 Columns 16 through 30 119 139 143 149 311 341 411 439 911 931 934 941 1139 1143 1149 Columns 31 through 40 1439 3411 9311 9341 9411 1 1 4 3 9

10   Pass
x = 27040; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

m = Columns 1 through 15 24 27 40 42 47 72 74 204 274 402 407 472 704 2704 4072 Columns 16 through 20 2 7 0 4 0

11   Pass
x = 52652; y_correct = 0; assert(isequal(pseudovampire(x),y_correct))

m = Columns 1 through 15 22 25 26 52 55 56 62 65 225 252 255 256 262 265 522 Columns 16 through 30 525 526 552 562 565 625 652 2525 2562 2565 2625 2652 5252 5262 5265 Columns 31 through 37 5625 5652 5 2 6 5 2

12   Fail
x = 146137; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

m = Columns 1 through 15 11 13 14 16 17 31 34 36 37 41 43 46 47 61 63 Columns 16 through 30 64 67 71 73 74 76 113 117 137 141 143 146 147 161 163 Columns 31 through 45 164 167 311 314 316 341 361 364 413 417 437 461 463 467 613 Columns 46 through 60 617 637 641 711 714 716 731 734 736 741 761 764 1137 1413 1417 Columns 61 through 75 1437 1461 1463 1467 1613 1617 1637 1641 3141 3161 3164 3641 4137 4613 4617 Columns 76 through 90 4637 6137 7141 7161 7164 7311 7314 7316 7341 7361 7364 7641 14137 14613 14617 Columns 91 through 105 14637 16137 31641 46137 71641 73141 73161 73164 73641 1 4 6 1 3 7

Assertion failed.

13   Fail
x = 13078260; y_correct = 1; assert(isequal(pseudovampire(x),y_correct))

m = Columns 1 through 15 12 13 16 17 18 20 21 23 26 27 28 31 32 36 37 Columns 16 through 30 38 60 61 62 63 67 68 70 71 72 73 76 78 80 81 Columns 31 through 45 82 83 86 87 102 106 107 108 126 132 136 137 138 172 176 Columns 46 through 60 178 182 186 201 203 231 270 271 273 280 281 283 287 302 306 Columns 61 through 75 307 308 326 372 376 378 382 386 601 603 620 621 623 627 628 Columns 76 through 90 631 670 671 673 680 681 683 687 701 703 726 731 782 786 801 Columns 91 through 105 803 826 831 870 871 873 1026 1072 1076 1078 1082 1086 1302 1306 1307 Columns 106 through 120 1308 1326 1372 1376 1378 1382 1386 1726 1782 1786 1826 2031 2701 2703 2731 Columns 121 through 135 2801 2803 2831 2870 2871 2873 3026 3072 3076 3078 3082 3086 3726 3782 3786 Columns 136 through 150 3826 6031 6201 6203 6231 6270 6271 6273 6280 6281 6283 6287 6701 6703 6731 Columns 151 through 165 6801 6803 6831 6870 6871 6873 7031 7826 8031 8701 8703 8731 10726 10782 10786 Columns 166 through 180 10826 13026 13072 13076 13078 13082 13086 13726 13782 13786 13826 17826 27031 28031 28701 Columns 181 through 195 28703 28731 30726 30782 30786 30826 37826 62031 62701 62703 62731 62801 62803 62831 62870 Columns 196 through 210 62871 62873 67031 68031 68701 68703 68731 87031 107826 130726 130782 130786 130826 137826 287031 Columns 211 through 225 307826 627031 628031 628701 628703 628731 687031 1307826 6287031 1 3 0 7 8 2 Columns 226 through 227 6 0

Assertion failed.

Suggested Problems

More from this Author148