Cody

# Problem 44306. Is it really a 5?

Solution 1339422

Submitted on 13 Nov 2017 by margreet docter
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))

ans = 1 5 5 1

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

ans = 1 15 15 0

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

ans = 1 25 25 1

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

ans = 1 35 35 1

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

ans = 1 50 50 0

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

ans = 1 52 52 0

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

ans = 1 55 55 1

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

ans = 1 59 59 0

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

ans = 1 85 85 1

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

ans = 1 105 105 1

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

ans = 1 115 115 0

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

ans = 1 125 125 1

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

ans = 1 250 250 0

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

ans = 1 500 500 1

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

ans = 1 555 555 1

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

ans = 1 5000 0 0 ans = 2 5 5 1

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

ans = 1 15000 0 0 ans = 2 15 15 0

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

ans = 1 55555 555 1 ans = 2 55 55 1

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

ans = 1 50000 0 0 ans = 2 50 50 0

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

ans = 1 55000 0 0 ans = 2 55 55 1

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

ans = 1 50500 500 1 ans = 2 50 50 1

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

ans = 1 50050 50 0 ans = 2 50 50 0

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

ans = 1 50005 5 1 ans = 2 50 50 1

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

ans = 1 500000 0 0 ans = 2 500 500 1

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

ans = 1 5000000 0 0 ans = 2 5000 0 0 ans = 3 5 5 1

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

ans = 1 15000000 0 0 ans = 2 15000 0 0 ans = 3 15 15 0

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

ans = 1 50000000 0 0 ans = 2 50000 0 0 ans = 3 50 50 0

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

ans = 1 105000000 0 0 ans = 2 105000 0 0 ans = 3 105 105 1

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

ans = 1 50050050 50 0 ans = 2 50050 50 0 ans = 3 50 50 0

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

ans = 1 50000005 5 1 ans = 2 50000 0 1 ans = 3 50 50 1

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

ans = 1 50000015 15 0 ans = 2 50000 0 0 ans = 3 50 50 0

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

ans = 1 500000000 0 0 ans = 2 500000 0 0 ans = 3 500 500 1

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

ans = 1.0e+09 * 0.0000 5.0000 0 0 ans = 2 5000000 0 0 ans = 3 5000 0 0 ans = 4 5 5 1

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

ans = 1.0e+10 * 0.0000 5.0000 0 0 ans = 2 50000000 0 0 ans = 3 50000 0 0 ans = 4 50 50 0