HackerRank Python - Integers Come In All Sizes

Read four numbers, a, b, c, and d, and print the result of a^b+c^d.

  1. # Enter your code here. Read input from STDIN. Print output to STDOUT
  2. a, b, c, d = [int(input()) for _ in range(4)]
  3. print(a ** b + c ** d)

download android app