Cody

Solution 1200820

Submitted on 30 May 2017
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Fail
n_str = '11'; assert(isequal(divisible_by_7(n_str),0))

if() forbidden

2   Fail
n_str = '20'; assert(isequal(divisible_by_7(n_str),0))

if() forbidden

3   Fail
n_str = '217'; assert(isequal(divisible_by_7(n_str),0))

if() forbidden

4   Fail
n_str = '231'; assert(isequal(divisible_by_7(n_str),1))

if() forbidden

5   Fail
n_str = '2240'; assert(isequal(divisible_by_7(n_str),0))

if() forbidden

6   Fail
n_str = '1236123'; assert(isequal(divisible_by_7(n_str),1))

if() forbidden

7   Fail
n_str = '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'; assert(isequal(divisible_by_7(n_str),0))

if() forbidden

8   Fail
n_str = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901'; assert(isequal(divisible_by_7(n_str),0))

if() forbidden

9   Fail
n_str = '2312314263000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'; assert(isequal(divisible_by_7(n_str),1))

if() forbidden

10   Fail
n_str = '231231420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001'; assert(isequal(divisible_by_7(n_str),0))

if() forbidden

11   Fail
n_str = '84216342000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000210000000000000000000000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001'; assert(isequal(divisible_by_7(n_str),1))

if() forbidden