Cody

Solution 2104894

Submitted on 24 Jan 2020 by Asif Newaz
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
T=1234567891011; b_correct=0; assert(isequal(isTicketValid(T),b_correct))

a = '1234567891011' b = 1.2346e+11 c = 2

2   Pass
T=2355211846932; b_correct=0; assert(isequal(isTicketValid(T),b_correct))

a = '2355211846932' b = 2.3552e+11 c = 4

3   Pass
T=2355211846934; b_correct=1; assert(isequal(isTicketValid(T),b_correct))

a = '2355211846934' b = 2.3552e+11 c = 4 tf = 1