Cody

Solution 1701918

Submitted on 3 Jan 2019 by Jiahang Li
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 = 384; a_correct = 42; assert(isequal(age(N),a_correct))

q = 393 402 411 420 429 438 447 456 465 474 e = 4 ans = 42

2   Pass
N = 366; a_correct = 42; assert(isequal(age(N),a_correct))

q = 375 384 393 402 411 420 429 438 447 456 e = 6 ans = 42

3   Pass
N = 381; a_correct = 39 assert(isequal(age(N),a_correct))

a_correct = 39 q = 390 399 408 417 426 435 444 453 462 471 e = 1 ans = 39

4   Pass
N = 302; a_correct = 32; assert(isequal(age(N),a_correct))

q = 311 320 329 338 347 356 365 374 383 392 e = 2 ans = 32

5   Pass
N = 389; a_correct = 47; assert(isequal(age(N),a_correct))

q = 398 407 416 425 434 443 452 461 470 479 e = 9 ans = 47

Suggested Problems

More from this Author1