Skip to content

Commit 2cee4ee

Browse files
committed
Runtime: 260 ms (Top 32.64%) | Memory: 13.9 MB (Top 58.72%)
1 parent cd21960 commit 2cee4ee

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
+7-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# Runtime: 260 ms (Top 32.64%) | Memory: 13.9 MB (Top 58.72%)
12
class Solution:
2-
def superPow(self, a: int, b: List[int]) -> int:
3-
mod = 1337
4-
ans = 1
3+
def superPow(self, a: int, b: List[int]) -> int:
4+
mod = 1337
5+
ans = 1
56

6-
for power in b:
7-
ans = ((pow(ans,10)%mod)*(pow(a,power)%mod))%mod
7+
for power in b:
8+
ans = ((pow(ans,10)%mod)*(pow(a,power)%mod))%mod
89

9-
return ans
10+
return ans

0 commit comments

Comments
 (0)