Skip to content

Latest commit

 

History

History
 
 

super_pow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Problem

Your task is to calculate a ** b mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array.

Example1:

a = 2 b = [3]

Result: 8 Example2:

a = 2 b = [1,0]

Result: 1024