Cody

# Problem 44306. Is it really a 5?

Solution 2761339

Submitted on 30 Jul 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
n = 5; assert(isequal(is_it_really_a_5(n),1))

2   Pass
n = 15; assert(isequal(is_it_really_a_5(n),0))

3   Fail
n = 25; assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

4   Fail
n = 35; assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

5   Pass
n = 50; assert(isequal(is_it_really_a_5(n),0))

6   Pass
n = 52; assert(isequal(is_it_really_a_5(n),0))

7   Fail
n = 55; assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

8   Pass
n = 59; assert(isequal(is_it_really_a_5(n),0))

9   Fail
n = 85; assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

10   Fail
n = 105; assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

11   Pass
n = 115; assert(isequal(is_it_really_a_5(n),0))

12   Fail
n = 125; assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

13   Fail
n = 250; assert(isequal(is_it_really_a_5(n),0))

Assertion failed.

14   Fail
n = 500; assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

15   Pass
n = 555; assert(isequal(is_it_really_a_5(n),1))

16   Fail
n = 5000; %5,000 assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

17   Pass
n = 15000; %15,000 assert(isequal(is_it_really_a_5(n),0))

18   Pass
n = 55555; %55,555 assert(isequal(is_it_really_a_5(n),1))

19   Pass
n = 50000; %50,000 assert(isequal(is_it_really_a_5(n),0))

20   Pass
n = 55000; %55,000 assert(isequal(is_it_really_a_5(n),1))

21   Pass
n = 50500; %50,500 assert(isequal(is_it_really_a_5(n),1))

22   Fail
n = 50050; %50,050 assert(isequal(is_it_really_a_5(n),0))

Assertion failed.

23   Fail
n = 50005; %50,005 assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

24   Fail
n = 500000; %500,000 assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

25   Fail
n = 5000000; %5,000,000 assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

26   Pass
n = 15000000; %15,000,000 assert(isequal(is_it_really_a_5(n),0))

27   Pass
n = 50000000; %50,000,000 assert(isequal(is_it_really_a_5(n),0))

28   Pass
n = 105000000; %105,000,000 assert(isequal(is_it_really_a_5(n),1))

29   Fail
n = 50050050; %50,050,050 assert(isequal(is_it_really_a_5(n),0))

Assertion failed.

30   Fail
n = 50000005; %50,000,005 assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

31   Pass
n = 50000015; %50,000,015 assert(isequal(is_it_really_a_5(n),0))

32   Fail
n = 500000000; %500,000,000 assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

33   Fail
n = 5000000000; %5,000,000,000 assert(isequal(is_it_really_a_5(n),1))

Assertion failed.

34   Pass
n = 50000000000; %50,000,000,000 assert(isequal(is_it_really_a_5(n),0))