Extremely Dangerous Virus

  • + 0 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))