Cody

Solution 2168201

Submitted on 21 Mar 2020 by Nikolaos Nikolaou
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
assert(isequal(mod_expo(5,3,13),8))

x = 8

2   Pass
assert(isequal(mod_expo(10,4,11),1))

x = 1

3   Pass
assert(isequal(mod_expo(4,13,497),445))

x = 445

4   Pass
assert(isequal(mod_expo(4,311,497),464))

x = 464

5   Pass
assert(isequal(mod_expo(50,300,13),1))

x = 1

6   Pass
assert(isequal(mod_expo(1000,300,23),3))

x = 3

7   Pass
assert(isequal(mod_expo(64,43,4),0))

x = 4 x = 0

8   Pass
assert(isequal(mod_expo(644,43,5),4))

x = 4

9   Pass
assert(isequal(mod_expo(327,211,56),47))

x = 47

10   Pass
assert(isequal(mod_expo(3277,211,234),1))

x = 1

Suggested Problems

More from this Author145