Integers Come In All Sizes

Sort by

recency

|

398 Discussions

|

  • + 0 comments

    For Python3

    This question is self explanatory

    a = int(input())
    b = int(input())
    c = int(input())
    d = int(input())
    
    print(a**b + c**d)
    
  • + 0 comments

    a,a1,b,b1=int(input()),int(input()),int(input()),int(input()) print(pow(a,a1)+pow(b,b1))

  • + 0 comments

    a = int(input()) b = int(input()) c = int(input()) d = int(input()) print((a ** b) + (c ** d))

  • + 0 comments

    In just 2 lines

    a, b, c, d = int(input()), int(input()), int(input()), int(input())
    print(pow(a,b) + pow(c,d))
    
  • + 0 comments

    Here's my one-liner code

    print((lambda a, b, c, d: (a**b) + (c**d))(*[int(input()) for _ in range(4)]))