1
import java.math.BigInteger;
2

3
class Solution {
4
public int superPow(int a, int[] b) {
5
StringBuilder bigNum = new StringBuilder();
6
Arrays.stream(b).forEach(i -> bigNum.append(i));
7

8
return BigInteger.valueOf(a)
9
.modPow(new BigInteger(bigNum.toString()), BigInteger.valueOf(1337))
10
.intValue();
11
}
12
}

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0