You are viewing a single comment's thread. Return to all comments →
Python 3 solution for cases where a+b is even (all test cases):
def solve(a, b, t): # Write your code here return int(pow(int((a+b)/2), t, 10**9 + 7))
Seems like cookies are disabled on this browser, please enable them to open this website
Extremely Dangerous Virus
You are viewing a single comment's thread. Return to all comments →
Python 3 solution for cases where a+b is even (all test cases):