Cody

Solution 1915311

Submitted on 29 Aug 2019
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   Fail
assert(lastpowb(2,9) == 3)

y = 0.3155

Assertion failed.

2   Fail
assert(lastpowb(3,242) == 4)

y = 0.2002

Assertion failed.

3   Fail
assert(lastpowb(4,259) == 4)

y = 0.2495

Assertion failed.

4   Fail
assert(lastpowb(5,26) == 2)

y = 0.4940

Assertion failed.

5   Fail
assert(lastpowb(6,1) == 0)

y = Inf

Assertion failed.

6   Fail
assert(lastpowb(7,347) == 3)

y = 0.3327

Assertion failed.

7   Fail
assert(lastpowb(8,32763) == 4)

y = 0.2000

Assertion failed.

8   Fail
assert(lastpowb(9,729) == 3)

y = 0.3333

Assertion failed.

9   Fail
assert(lastpowb(10,7) == 0)

y = 1.1833

Assertion failed.

10   Fail
assert(lastpowb(11,18) == 1)

y = 0.8296

Assertion failed.

11   Fail
assert(lastpowb(12,145) == 2)

y = 0.4993

Assertion failed.

12   Fail
assert(lastpowb(13,16) == 1)

y = 0.9251

Assertion failed.

13   Fail
assert(lastpowb(14,201) == 2)

y = 0.4976

Assertion failed.

14   Fail
assert(lastpowb(15,50633) == 4)

y = 0.2500

Assertion failed.

15   Fail
assert(lastpowb(16,4083) == 2)

y = 0.3335

Assertion failed.

16   Fail
assert(lastpowb(17,304) == 2)

y = 0.4956

Assertion failed.

17   Fail
assert(lastpowb(18,30) == 1)

y = 0.8498

Assertion failed.

18   Fail
assert(lastpowb(19,6878) == 3)

y = 0.3332

Assertion failed.

19   Fail
assert(lastpowb(20,18) == 0)

y = 1.0365

Assertion failed.

20   Fail
assert(lastpowb(21,41) == 1)

y = 0.8198

Assertion failed.

21   Fail
assert(lastpowb(22,35) == 1)

y = 0.8694

Assertion failed.

22   Fail
assert(lastpowb(23,6436360) == 5)

y = 0.2000

Assertion failed.

23   Fail
assert(lastpowb(24,20) == 0)

y = 1.0609

Assertion failed.

24   Fail
assert(lastpowb(25,641) == 2)

y = 0.4980

Assertion failed.